public interface ItemRegistry
Modifier and Type | Method and Description |
---|---|
ItemMaterial |
getMaterial(ItemType itemType)
Get the material for the given item.
|
default java.lang.String |
getName(ItemType itemType)
Deprecated.
Names are now translatable, use
getRichName(ItemType) . |
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.
|
com.sk89q.worldedit.util.formatting.text.Component getRichName(ItemType itemType)
itemType
- the itemdefault com.sk89q.worldedit.util.formatting.text.Component getRichName(BaseItemStack itemStack)
itemStack
- the item stack@Deprecated @Nullable default java.lang.String getName(ItemType itemType)
getRichName(ItemType)
.itemType
- the item@Nullable ItemMaterial getMaterial(ItemType itemType)
itemType
- the item