Script API - v1.26.10
    Preparing search index...

    Class ItemStopUseAfterEventSignal

    Manages callbacks that are connected to the stopping of charging for an item that has a registered minecraft:chargeable component.

    export class ItemStopUseAfterEventSignal {
    private constructor();
    subscribe(callback: (arg0: ItemStopUseAfterEvent) => void): (arg0: ItemStopUseAfterEvent) => void;
    unsubscribe(callback: (arg0: ItemStopUseAfterEvent) => void): void;
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      Returns void

      Removes a callback from being called when a chargeable item stops charging.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.