SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    identifier: string = ...

    The identifier of the trait.

    item: ItemStack

    The item stack that this trait is attached to.

    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: string

    The identifier of the trait.

    tag: null | string = null

    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.

    Methods

    • Called when the item has been signaled to cooldown.

      Parameters

      • duration: number

        The duration of the cooldown in ticks.

      Returns void