SerenityJS
    Preparing search index...

    Class ItemTypeCooldownComponent

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    The component collection of the item type.

    identifier: string = ...

    The component identifier of the item type.

    type: ItemType

    The item type of the component.

    identifier: "minecraft:cooldown"

    The component identifier of the item type.

    Accessors

    Methods

    • Get the duration of the cooldown component in seconds.

      Parameters

      • ticks: boolean = false

        Whether to return the duration in ticks; default is false.

      Returns number

      The duration of the cooldown component in seconds or ticks.

    • Set the duration of the cooldown component in seconds.

      Parameters

      • value: number

        The duration of the cooldown component in seconds or ticks.

      • ticks: boolean = false

        Whether the value is in ticks; default is false.

      Returns void