class

ItemStack

Represents an item with quantity, durability and metadata. Create with new ItemStack(itemId, quantity). Key methods: getItemId(), getQuantity(), getDurability(), isEmpty(), withQuantity(n), withDurability(d), withMetadata(doc). Static EMPTY constant for empty slots.

Methods

java.lang.String getBlockKey()
com.hypixel.hytale.server.core.inventory.container.ItemContainer getContainer()
double getDurability()
com.hypixel.hytale.server.core.asset.type.item.config.Item getItem()
java.lang.String getItemId()
com.hypixel.hytale.server.core.inventory.ItemStack getItemStack()
double getMaxDurability()
org.bson.BsonDocument getMetadata()
boolean getOverrideDroppedItemAnimation()
int getQuantity()
short getSlot()
boolean isBroken()
boolean isEmpty()
boolean isUnbreakable()
boolean isValid()
void setOverrideDroppedItemAnimation()
java.lang.String toString()
com.hypixel.hytale.server.core.inventory.ItemStack withDurability()
com.hypixel.hytale.server.core.inventory.ItemStack withIncreasedDurability()
com.hypixel.hytale.server.core.inventory.ItemStack withMaxDurability()