Provides information about how damage has been applied to an entity.

interface EntityDamageSource {
    cause: EntityDamageCause;
    damagingEntity?: Entity;
    damagingProjectile?: Entity;
}

Properties

Cause enumeration of damage.

damagingEntity?: Entity

Optional entity that caused the damage.

damagingProjectile?: Entity

Optional projectile that may have caused damage.