Class ItemStack
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.ItemStack
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ItemStack
public ItemStack(int id, int amount, @Nullable com.viaversion.nbt.mini.MNBT nbt) -
ItemStack
public ItemStack(int id) -
ItemStack
public ItemStack(int id, int amount)
-
-
Method Details
-
getId
public int getId() -
getAmount
public int getAmount() -
getNbt
public @Nullable com.viaversion.nbt.mini.MNBT getNbt() -
setAmount
public void setAmount(int amount) -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getEnchantments
-
getCompoundTag
public com.viaversion.nbt.tag.CompoundTag getCompoundTag()
-