类 EntityHurtAfterEvent实验性

表示与实体受伤相关的信息。

Contains information related to an entity getting hurt.

属性

damage: number

表示造成的伤害量。

Describes the amount of damage caused.

damageSource: EntityDamageSource

表示可能造成此伤害的实体的来源信息。

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

hurtEntity: Entity

表示受伤的实体。

Entity that was hurt.