SerenityJS
    Preparing search index...

    Class ItemDurabilityTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    identifier: string = ...

    The identifier of the trait.

    item: ItemStack

    The item stack that this trait is attached to.

    maxDurability: number = 50

    The maximum durability of the item stack.

    components: string[] = []

    The item component that this trait is compatible with by default. If null, the trait will not attach to any item stack by default.

    identifier: "durability"

    The identifier of the trait.

    tag: "minecraft:is_tool"

    The item tag that this trait is compatible with by default. If null, the trait will not attach to any item stack by default.

    types: ItemIdentifier[] = []

    The item type identifiers that this trait is compatible with by default.

    Accessors

    Methods