API reference / dev.zernyth.api.inventory
ItemStack
public final class ItemStack
Immutable native-validated value snapshot. Copies retain all native NBT without native pointers.
Members
public String getType()public int getAmount()public int getMaxStackSize()public int getMaxDurability()public int getData()public ItemMeta getItemMeta()public ItemStack withAmount(int amount)public ItemStack withItemMeta(ItemMeta meta)public ItemStack copy()public boolean isSimilar(ItemStack other)public boolean equals(Object o)public int hashCode()public void write(DataOutput out) throws IOExceptionInternal binary transport. No native handles. Format is versioned with the runtime, not a persistence contract.
public static ItemStack read(DataInput in) throws IOException