For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityDieAfterEvent.md.

Class: EntityDieAfterEvent

event entity

Beta

包含与游戏中实体死亡相关的数据。

Contains data related to the death of an entity in the game.

Properties

damageSource

readonly damageSource: EntityDamageSource

Beta

Remarks

如果指定,提供关于导致此实体死亡的伤害来源的更多信息。

If specified, provides more information on the source of damage that caused the death of this entity.


deadEntity

readonly deadEntity: Entity

Beta

Remarks

现已死亡的实体对象。

Now-dead entity object.

同领域相关