Modifier and Type | Field and Description |
---|---|
static NamespacedRegistry<ItemType> |
REGISTRY |
Constructor and Description |
---|
ItemType(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BlockType |
getBlockType()
Gets the block representation of this item type, if it exists.
|
java.lang.String |
getId()
The id of this object in the registry.
|
ItemMaterial |
getMaterial()
Get the material for this ItemType.
|
java.lang.String |
getName()
Deprecated.
Names are translatable now, use
getRichName() . |
com.sk89q.worldedit.util.formatting.text.Component |
getRichName() |
boolean |
hasBlockType()
Gets whether this item type has a block representation.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final NamespacedRegistry<ItemType> REGISTRY
public java.lang.String getId()
Keyed
public com.sk89q.worldedit.util.formatting.text.Component getRichName()
@Deprecated public java.lang.String getName()
getRichName()
.public boolean hasBlockType()
@Nullable public BlockType getBlockType()
public ItemMaterial getMaterial()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object