public class SimpleItemDefinition extends java.lang.Object implements ItemDefinition
AIR, LEGACY_FIREWORK| Constructor and Description |
|---|
SimpleItemDefinition(java.lang.String identifier,
int runtimeId,
boolean componentBased) |
SimpleItemDefinition(java.lang.String identifier,
int runtimeId,
ItemVersion version,
boolean componentBased,
org.cloudburstmc.nbt.NbtMap componentData) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
org.cloudburstmc.nbt.NbtMap |
getComponentData()
Get the component data NBT for this item.
|
java.lang.String |
getIdentifier() |
int |
getRuntimeId() |
ItemVersion |
getVersion() |
int |
hashCode() |
boolean |
isComponentBased()
Whether this item is data driven.
|
java.lang.String |
toString() |
public SimpleItemDefinition(java.lang.String identifier,
int runtimeId,
boolean componentBased)
public SimpleItemDefinition(java.lang.String identifier,
int runtimeId,
ItemVersion version,
boolean componentBased,
org.cloudburstmc.nbt.NbtMap componentData)
public java.lang.String getIdentifier()
getIdentifier in interface org.cloudburstmc.protocol.common.NamedDefinitionpublic int getRuntimeId()
getRuntimeId in interface org.cloudburstmc.protocol.common.Definitionpublic ItemVersion getVersion()
getVersion in interface ItemDefinitionpublic boolean isComponentBased()
ItemDefinitionisComponentBased in interface ItemDefinitionpublic org.cloudburstmc.nbt.NbtMap getComponentData()
ItemDefinitiongetComponentData in interface ItemDefinitionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object