Latite Scripting Documentation (Exports)
Exports > world/item > ItemStack
Class
An instance of an Item (has count, damage, etc.)
Source: world/item.d.ts:18
new ItemStack():
ItemStack
readonlyaux:number
The auxiliary/data value of the item (not damage) (-32768 to 32767)
Source: world/item.d.ts:26
readonlyitem:null|Item
The item type. Will be null when the item is air.
Source: world/item.d.ts:22
getCount():
number
Gets the number of items in the stack
Source: world/item.d.ts:36
number
getDamage():
number
Gets the damage of the item (e.g. if a sword was used once, it would have a damage value of 1)
Source: world/item.d.ts:46
number
getDisplayName():
string
Get the display name (e.g. Cooked Beef)
Source: world/item.d.ts:31
string
getPickupTime():
number
Gets the pickup time in milliseconds
Source: world/item.d.ts:41
number