PlayerHurtEntityEvent

constructor(damager: Player, victim: Entity, cause: EntityDamageEvent.DamageCause, damage: Double)

Parameters

damager

The player that hit the entity.

victim

The entity that was hit.

cause

The cause of the damage.

damage

The damage that the victim will take.