@minecraft/server / EntityRemoveAfterEventSignal
Class: EntityRemoveAfterEventSignal ​
Defined in: @minecraft/server/index.d.ts:12057
Allows registration for an event that fires when an entity is removed from the game (for example, unloaded, or a few seconds after they are dead.)
Methods ​
subscribe() ​
subscribe(
callback,options?): (arg0) =>void
Defined in: @minecraft/server/index.d.ts:12076
Parameters ​
callback ​
(arg0) => void
Function to call.
options? ​
Additional filtering options for this event.
Returns ​
Returns a closure that can be used in subsequent unsubscribe operations.
(arg0) => void
Remarks ​
Will call your function every time an entity is removed from the game.
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:12090
Parameters ​
callback ​
(arg0) => void
Returns ​
void
Remarks ​
Unsubscribes your function from subsequent calls when an entity is removed.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.