ItemStack
Last updated
Describes a minecraft item-stack.
readonlyitemDamage:number
readonlymaxStackSize:number
stackSize:
number
The amount of items in the stack.
exists():
boolean
Returns
boolean
Whether the item exists (not null/empty).
getDisplayName():
string
Returns
string
The name of the item.
getItemId():
number
Returns
number
The id of the item.
getRemainingDurability():
number
Returns
number
The remaining durability of the item.
getUnlocalizedName():
string
Returns
string
The unlocalized name of the item.
hasEnchantments():
boolean
Returns
boolean
Whether the item has enchantments.
isAxe():
boolean
Returns
boolean
Whether the item is an axe.
isBlock():
boolean
Returns
boolean
Whether the item is a block.
isBroken():
boolean
Returns
boolean
Whether the item is broken.
isDamageable():
boolean
Returns
boolean
Whether the item can be damaged.
isHoe():
boolean
Returns
boolean
Whether the item is a hoe.
isPickaxe():
boolean
Returns
boolean
Whether the item is a pickaxe.
isShovel():
boolean
Returns
boolean
Whether the item is a shovel.
isStackable():
boolean
Returns
boolean
Whether the item can be stacked.
isSword():
boolean
Returns
boolean
Whether the item is a sword.
isTool():
boolean
Returns
boolean
Whether the item is a tool or weapon.
setNBTData():
string
Sets the NBT data of the item.
Returns
string
Last updated