bedrock-kit
    Preparing search index...

    Class ItemStack

    Represents a reference to an item with an optional stack count, as used in recipe results and trade outputs.

    Index

    Constructors

    Properties

    Constructors

    Properties

    count: number

    The number of items in the stack. Defaults to 1.

    id: string

    The namespaced item identifier, e.g. "minecraft:copper_spear".

    item: Item

    The resolved Item definition from the addon, or undefined if the identifier refers to a vanilla item not present in the pack.