An instance of an Item (has count, damage, etc.)

Hierarchy

  • ItemStack

Constructors

Properties

aux: number

The auxiliary/data value of the item (not damage) (-32768 to 32767)

item: null | Item

The item type. Will be null when the item is air.

Methods

  • Gets the number of items in the stack

    Returns number

  • Gets the damage of the item (e.g. if a sword was used once, it would have a damage value of 1)

    Returns number

  • Get the display name (e.g. Cooked Beef)

    Returns string

  • Gets the pickup time in milliseconds

    Returns number

Generated using TypeDoc