@minecraft/server / EntityDieAfterEventSignal
Class: EntityDieAfterEventSignal ​
Defined in: @minecraft/server/index.d.ts:10137
Supports registering for an event that fires after an entity has died.
Methods ​
subscribe() ​
subscribe(
callback,options?): (arg0) =>void
Defined in: @minecraft/server/index.d.ts:10156
Parameters ​
callback ​
(arg0) => void
Function to call when an entity dies.
options? ​
Additional filtering options for when the subscription fires.
Returns ​
Returns the closure that can be used in future downstream calls to unsubscribe.
(arg0) => void
Remarks ​
Subscribes to an event that fires when an entity dies.
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:10170
Parameters ​
callback ​
(arg0) => void
Returns ​
void
Remarks ​
Stops this event from calling your function when an entity dies.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.