onDamage

fun onDamage(event: EntityDamageEvent)

Will be called when an Entity takes damage.

Since

0.2.0

Parameters

event

The Event which contains all the details