Class BlockTypeIndex
Resolves block-type names to the BlockType store's dense registry index (Java:
BlockType.getAssetMap().getIndex) — the same index delivered to the client via UpdateBlockTypes.
public sealed class BlockTypeIndex : IBlockTypeIndex
- Inheritance
-
BlockTypeIndex
- Implements
-
IBlockTypeIndex
- Inherited Members
Constructors
BlockTypeIndex(AssetRegistry)
Resolves block-type names to the BlockType store's dense registry index (Java:
BlockType.getAssetMap().getIndex) — the same index delivered to the client via UpdateBlockTypes.
public BlockTypeIndex(AssetRegistry registry)
Parameters
registryAssetRegistry
Methods
IndexOf(string)
The registry index for name, or 0 (Empty/air) when the block is unknown.
public ushort IndexOf(string name)
Parameters
namestring