getId
getId: (ItemStack) -> numberThe item id.
ItemStack.new(…)| Method | Returns | Description |
|---|---|---|
ItemStackClass.new | ItemStack | ItemStack.new(id, quantity). |
LootManager.getItemSpawns | {ItemStack} | The stacks that spawned at worldPoint this tick, in spawn order. |
PlayerLootReceived.getItems | {ItemStack} | The stacks, in spawn order. |
ServerNpcLoot.getItems | {ItemStack} | The stacks. |
getIdgetId: (ItemStack) -> numberThe item id.
getQuantitygetQuantity: (ItemStack) -> numberThe quantity.
toStringtoString: (ItemStack) -> stringItemStack(id=…, quantity=…).
equalsequals: (ItemStack, any) -> booleanWhether other equals this ItemStack, as == answers it (false for a value of another class).
newnew: (number, number) -> ItemStackItemStack.new(id, quantity).