Interface ItemInstance

Object representing item instance in the inventory.

interface ItemInstance {
    count: number;
    data: number;
    extra?: ItemExtraData;
    id: number;
}

Properties

Properties

count: number

Amount of items of the specified ID.

data: number

Item data value. Generally specifies some property of the item, e.g. color, material, etc. In many cases -1 means "any data value".

0

Item extra data. Contains some additional item data such as enchants, custom item name or some additional properties.

id: number

Item ID.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.