Перейти к основному содержимому

Interface: ItemStackData

Serializable, typed snapshot accepted by ItemStack.fromData.

Properties

amount

readonly amount: number

Number of items in the stack.


canDestroy

readonly canDestroy: readonly string[]

Adventure-mode block predicates stored in CanDestroy.


canPlaceOn

readonly canPlaceOn: readonly string[]

Adventure-mode block predicates stored in CanPlaceOn.


damage

readonly damage: number

Current durability damage.


data

readonly data: Readonly<Record<string, boolean | number | string | Vector3 | Vector3Mapping>>

QuestScript data stored on the stack.


enchantments

readonly enchantments: Readonly<Record<string, number>>

Enchantment levels keyed by namespaced enchantment identifier.


lore

readonly lore: readonly string[]

Lore lines in display order.


nameTag

readonly nameTag: string

Effective display name returned by Minecraft.


tags

readonly tags: readonly string[]

Sorted Minecraft item tags derived from typeId.


typeId

readonly typeId: string

Namespaced item type identifier.