public BlockState(BlockDescription block, StatePropertyValue[]?properties, uint id) { if (properties?.Length == 0) { properties = null; } Description = block; _properties = properties; StateId = id; }
public BlockState(BlockDescription block, StatePropertyValue[] properties, uint id) { Block = block ?? throw new ArgumentNullException(nameof(block)); _properties = properties ?? throw new ArgumentNullException(nameof(properties)); Id = id; }