damage
abstract fun damage(@NotNull hitBox: @NotNull HitBox, @NotNull source: @NotNull ModelDamageSource, damage: Double): Boolean
Called when the hitbox receives damage.
Return
true if the damage was cancelled
Since
1.15.2
Parameters
hitBox
the target hitbox
source
the damage source
damage
the damage amount