Interface HitBoxListener.OnDamage

Enclosing interface:
HitBoxListener

public static interface HitBoxListener.OnDamage
On damage
  • Method Details

    • event

      boolean event(@NotNull @NotNull HitBox hitBox, @NotNull @NotNull ModelDamageSource source, double damage)
      Handles damage event
      Parameters:
      hitBox - hit-box
      source - damage source
      damage - damage amount
      Returns:
      should be canceled
    • andThen

      @NotNull default @NotNull HitBoxListener.OnDamage andThen(@NotNull @NotNull HitBoxListener.OnDamage other)
      Sums two damage handlers
      Parameters:
      other - other
      Returns:
      new handler