src/AnvilPacker/Level/Tiles/BlockRegistry.cs
/// <summary> Gets or creates the state for the given block and properties. </summary>
/// <param name="props">The block state property values. Note that the block state will take the ownership of this array. Do not change it after calling this method. </param>
Gets or creates the state for the given block and properties.
Gets or creates the state for the given block and properties .
public static BlockState GetState(ResourceName blockName, BlockPropertyValue[] props, DataVersion version = LatestVersion)
        {
            return FindState(blockName, props, version) ?? 
                   CreateState(blockName, props);
        }
public static BlockState GetState ( ResourceName blockName , BlockPropertyValue [ ] props , DataVersion version = LatestVersion ) { return FindState ( blockName , props , version ) ?? CreateState ( blockName , props ) ; }
Gets or creates the state for the given block and properties.
Gets or creates the state for the given block and properties .
blockName
ResourceName
props
BlockPropertyValue[]
The block state property values. Note that the block state will take the ownership of this array. Do not change it after calling this method.
The block state property values . Note that the block state will take the ownership of this array . Do not change it after calling this method .
version
DataVersion