Class HitBoxInteractEvent

java.lang.Object
kr.toxicity.model.api.event.hitbox.HitBoxInteractEvent
All Implemented Interfaces:
CancellableEvent, HitBoxEvent, ModelEvent

public class HitBoxInteractEvent extends Object implements CancellableEvent, HitBoxEvent
Triggered when a player interacts with a model's hitbox.

This event corresponds to a right-click interaction.

Since:
2.0.0
  • Constructor Details

    • HitBoxInteractEvent

      @Internal public HitBoxInteractEvent(@NotNull @NotNull PlatformPlayer who, @NotNull @NotNull HitBox hitBox, @NotNull @NotNull ModelInteractionHand hand)
      Creates a new HitBoxInteractEvent.
      Parameters:
      who - the player interacting
      hitBox - the hitbox being interacted with
      hand - the hand used for interaction
      Since:
      2.0.0