Interface ItemRegistry
- All Known Implementing Classes:
BundledItemRegistry
public interface ItemRegistry
-
Method Summary
Modifier and TypeMethodDescriptiongetMaterial
(ItemType itemType) Get the material for the given item.default String
Deprecated.default com.sk89q.worldedit.util.formatting.text.Component
getRichName
(BaseItemStack itemStack) Gets the name for the given item stack.com.sk89q.worldedit.util.formatting.text.Component
getRichName
(ItemType itemType) Gets the name for the given item.
-
Method Details
-
getRichName
Gets the name for the given item.- Parameters:
itemType
- the item- Returns:
- The name
-
getRichName
Gets the name for the given item stack.- Parameters:
itemStack
- the item stack- Returns:
- The name
-
getName
Deprecated.Names are now translatable, usegetRichName(ItemType)
.Gets the name for the given item.- Parameters:
itemType
- the item- Returns:
- The name, or null if it's unknown
-
getMaterial
Get the material for the given item.- Parameters:
itemType
- the item- Returns:
- the material, or null if the material information is not known
-
getRichName(ItemType)
.