@minecraft/server / ItemStopUseAfterEventSignal
Class: ItemStopUseAfterEventSignal ​
Defined in: @minecraft/server/index.d.ts:15121
Manages callbacks that are connected to the stopping of charging for an item that has a registered minecraft:chargeable component.
Methods ​
subscribe() ​
subscribe(
callback): (arg0) =>void
Defined in: @minecraft/server/index.d.ts:15133
Parameters ​
callback ​
(arg0) => void
Returns ​
(arg0) => void
Remarks ​
Adds a callback that will be 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.
unsubscribe() ​
unsubscribe(
callback):void
Defined in: @minecraft/server/index.d.ts:15144
Parameters ​
callback ​
(arg0) => void
Returns ​
void
Remarks ​
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.