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
-
Method Summary
Modifier and TypeMethodDescriptionGet an unmodifiable map of all block propertiesRetrieve 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.world.registry.BlockRegistry
getMaterial, values
-
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
-
getAllProperties
Description copied from interface:BlockRegistry
Get an unmodifiable map of all block properties- Specified by:
getAllProperties
in interfaceBlockRegistry
- Returns:
- a map of states where the key is the property's ID
-