onDamage

open fun onDamage(event: EntityDamageByEntityEvent)(source)

Handles damage caused by Projectile (e.g. arrow)

Parameters

event

the event that holds information about the damage caused by a projectile