event
abstract fun event(@NotNull hitBox: @NotNull HitBox, @NotNull source: @NotNull ModelDamageSource, damage: Double): Boolean
Handles a damage event.
Return
true to cancel the damage, false otherwise
Since
1.15.2
Parameters
hitBox
the target hitbox
source
the damage source
damage
the damage amount