Class BundledItemRegistry
java.lang.Object
com.sk89q.worldedit.world.registry.BundledItemRegistry
- All Implemented Interfaces:
ItemRegistry
A item registry that uses
BundledItemRegistry
to serve information
about items.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMaterial
(ItemType itemType) Get the material for the given item.Deprecated.com.sk89q.worldedit.util.formatting.text.Component
getRichName
(ItemType itemType) Gets the name for the given item.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.ItemRegistry
getRichName
-
Constructor Details
-
BundledItemRegistry
public BundledItemRegistry()
-
-
Method Details
-
getRichName
Description copied from interface:ItemRegistry
Gets the name for the given item.- Specified by:
getRichName
in interfaceItemRegistry
- Parameters:
itemType
- the item- Returns:
- The name
-
getName
Deprecated.Description copied from interface:ItemRegistry
Gets the name for the given item.- Specified by:
getName
in interfaceItemRegistry
- Parameters:
itemType
- the item- Returns:
- The name, or null if it's unknown
-
getMaterial
Description copied from interface:ItemRegistry
Get the material for the given item.- Specified by:
getMaterial
in interfaceItemRegistry
- Parameters:
itemType
- the item- Returns:
- the material, or null if the material information is not known
-