Manages callbacks that are connected to an item use event.

Hierarchy

  • ItemUseAfterEventSignal

Constructors

Methods

Constructors

Methods

  • Parameters

    • callback: ((arg) => void)

    Returns ((arg) => void)

      • (arg): void
      • Parameters

        Returns void

        Remarks

        Adds a callback that will be called when an item is used.

        This function can't be called in read-only mode.

    Remarks

    Adds a callback that will be called when an item is used.

    This function can't be called in read-only mode.

  • Parameters

    • callback: ((arg) => void)

    Returns void

    Remarks

    Removes a callback from being called when an item is used.

    This function can't be called in read-only mode.