Class BundledBlockRegistry
java.lang.Object
com.sk89q.worldedit.world.registry.BundledBlockRegistry
- All Implemented Interfaces:
BlockRegistry
A block registry that uses
BundledBlockData
to serve information
about blocks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the internal ID for a given state, if possible.getMaterial
(BlockType blockType) Get the material for the given block.Deprecated.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.
-
Constructor Details
-
BundledBlockRegistry
public BundledBlockRegistry()
-
-
Method Details
-
getRichName
Description copied from interface:BlockRegistry
Gets the name for the given block.- Specified by:
getRichName
in interfaceBlockRegistry
- Parameters:
blockType
- the block- Returns:
- The name
-
getName
Deprecated.Description copied from interface:BlockRegistry
Gets the name for the given block.- Specified by:
getName
in interfaceBlockRegistry
- Parameters:
blockType
- the block- Returns:
- The name, or null if it's unknown
-
getMaterial
Description copied from interface:BlockRegistry
Get the material for the given block.- Specified by:
getMaterial
in interfaceBlockRegistry
- Parameters:
blockType
- the block- Returns:
- the material, or null if the material information is not known
-
getProperties
Description copied from interface:BlockRegistry
Get an unmodifiable map of states for this block.- Specified by:
getProperties
in interfaceBlockRegistry
- Parameters:
blockType
- the block- Returns:
- a map of states where the key is the state's ID
-
getInternalBlockStateId
Description copied from interface:BlockRegistry
Retrieve the internal ID for a given state, if possible.- Specified by:
getInternalBlockStateId
in interfaceBlockRegistry
- Parameters:
state
- The block state- Returns:
- the internal ID of the state
-