public class BundledBlockRegistry extends java.lang.Object implements BlockRegistry
BundledBlockData
to serve information
about blocks.Constructor and Description |
---|
BundledBlockRegistry() |
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)
Deprecated.
|
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.
|
public com.sk89q.worldedit.util.formatting.text.Component getRichName(BlockType blockType)
BlockRegistry
getRichName
in interface BlockRegistry
blockType
- the block@Nullable @Deprecated public java.lang.String getName(BlockType blockType)
BlockRegistry
getName
in interface BlockRegistry
blockType
- the block@Nullable public BlockMaterial getMaterial(BlockType blockType)
BlockRegistry
getMaterial
in interface BlockRegistry
blockType
- the block@Nullable public java.util.Map<java.lang.String,? extends Property<?>> getProperties(BlockType blockType)
BlockRegistry
getProperties
in interface BlockRegistry
blockType
- the blockpublic java.util.OptionalInt getInternalBlockStateId(BlockState state)
BlockRegistry
getInternalBlockStateId
in interface BlockRegistry
state
- The block state