OnDamage

interface OnDamage

Functional interface for handling damage events.

Since

1.15.2

Functions

Link copied to clipboard
@NotNull
open fun andThen(@NotNull other: @NotNull HitBoxListener.OnDamage): @NotNull HitBoxListener.OnDamage
Chains this handler with another.
Link copied to clipboard
abstract fun event(@NotNull hitBox: @NotNull HitBox, @NotNull source: @NotNull ModelDamageSource, damage: Double): Boolean
Handles a damage event.