实验性
实验性
Function to call when an entity dies.
可选
options: EntityEventOptionsAdditional filtering options for when the subscription fires.
Returns the closure that can be used in future downstream calls to unsubscribe.
Subscribes to an event that fires when an entity dies.
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
This function can be called in early-execution mode.
实验性
Stops this event from calling your function when an entity dies.
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
This function can be called in early-execution mode.
Supports registering for an event that fires after an entity has died.