跳到主要内容

Class: EntityHurtAfterEvent

Contains information related to an entity getting hurt.

Constructors

new EntityHurtAfterEvent()

private new EntityHurtAfterEvent(): EntityHurtAfterEvent

Returns

EntityHurtAfterEvent

Properties

damage

readonly damage: number

Remarks

Describes the amount of damage caused.


damageSource

readonly damageSource: EntityDamageSource

Remarks

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


hurtEntity

readonly hurtEntity: Entity

Remarks

Entity that was hurt.