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.
|
default java.lang.String |
getName(BlockType blockType)
Deprecated.
Names are now translatable, use
getRichName(BlockType) . |
java.util.Map<java.lang.String,? extends Property<?>> |
getProperties(BlockType blockType)
Get an unmodifiable map of states for this block.
|
com.sk89q.worldedit.util.formatting.text.Component |
getRichName(BlockType blockType)
Gets the name for the given block.
|
com.sk89q.worldedit.util.formatting.text.Component getRichName(BlockType blockType)
blockType
- the block@Deprecated @Nullable default java.lang.String getName(BlockType blockType)
getRichName(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