Interface HitBoxListener


public interface HitBoxListener
A listener of hit-box
  • Field Details

  • Method Details

    • builder

      @NotNull static @NotNull HitBoxListener.Builder builder()
      Creates build of hit-box listener
      Returns:
      listener builder
    • toBuilder

      @NotNull default @NotNull HitBoxListener.Builder toBuilder()
    • sync

      void sync(@NotNull @NotNull HitBox hitBox)
      Listens to hit-box tick
      Parameters:
      hitBox - target hit-box
    • damage

      boolean damage(@NotNull @NotNull HitBox hitBox, @NotNull @NotNull ModelDamageSource source, double damage)
      Listens to hit-box damage
      Parameters:
      hitBox - target hit-box
      source - damage source
      damage - damage
      Returns:
      cancel
    • remove

      void remove(@NotNull @NotNull HitBox hitBox)
      Listens to hit-box remove
      Parameters:
      hitBox - target hit-box
    • mount

      void mount(@NotNull @NotNull HitBox hitBox, @NotNull @NotNull org.bukkit.entity.Entity entity)
      Listens to hit-box mount
      Parameters:
      hitBox - target hit-box
      entity - entity
    • dismount

      void dismount(@NotNull @NotNull HitBox hitBox, @NotNull @NotNull org.bukkit.entity.Entity entity)
      Listens to hit-box dismount
      Parameters:
      hitBox - target hit-box
      entity - entity