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/EntityHurtAfterEvent.md.

Class: EntityHurtAfterEvent

event entity

Beta

包含与实体受到伤害相关的信息。

Contains information related to an entity getting hurt.

Properties

damage

readonly damage: number

Beta

Remarks

描述造成的伤害量。

Describes the amount of damage caused.


damageSource

readonly damageSource: EntityDamageSource

Beta

Remarks

可能施加此伤害的实体的来源信息。

Source information on the entity that may have applied this damage.


hurtEntity

readonly hurtEntity: Entity

Beta

Remarks

受到伤害的实体。

Entity that was hurt.

同领域相关