Manages callbacks that are connected to an item use event.

Methods

  • Parameters

    Returns (arg: ItemUseAfterEvent) => void

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

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

    This function can be called in early-execution mode.

  • Parameters

    Returns void

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

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

    This function can be called in early-execution mode.