public interface BlockRegistry
Modifier and Type | Method and Description |
---|---|
java.util.OptionalInt |
getInternalBlockStateId(BlockState state)
Retrieve the internal ID for a given state, if possible.
|
BlockMaterial |
getMaterial(BlockType blockType)
Get the material for the given block.
|
java.lang.String |
getName(BlockType blockType)
Gets the name for the given block.
|
java.util.Map<java.lang.String,? extends Property<?>> |
getProperties(BlockType blockType)
Get an unmodifiable map of states for this block.
|
@Nullable java.lang.String getName(BlockType blockType)
blockType
- the block@Nullable BlockMaterial getMaterial(BlockType blockType)
blockType
- the blockjava.util.Map<java.lang.String,? extends Property<?>> getProperties(BlockType blockType)
blockType
- the blockjava.util.OptionalInt getInternalBlockStateId(BlockState state)
state
- The block state