实验性
实验性
实体死亡时调用的函数。
Function to call when an entity dies.
可选
options: EntityEventOptions订阅触发时的额外过滤选项。
Additional 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.