Пример #1
0
        public BlockState(BlockDescription block, StatePropertyValue[]?properties, uint id)
        {
            if (properties?.Length == 0)
            {
                properties = null;
            }

            Description = block;
            _properties = properties;
            StateId     = id;
        }
Пример #2
0
 public BlockState(BlockDescription block, StatePropertyValue[] properties, uint id)
 {
     Block       = block ?? throw new ArgumentNullException(nameof(block));
     _properties = properties ?? throw new ArgumentNullException(nameof(properties));
     Id          = id;
 }