public class ItemType
extends java.lang.Object
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() |
java.lang.String |
getName()
Gets the name of this item, or the ID if the name cannot be found.
|
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()
public java.lang.String getName()
public boolean hasBlockType()
@Nullable public BlockType getBlockType()
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