Class HitBoxInteractAtEvent

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

public class HitBoxInteractAtEvent extends Object implements CancellableEvent, HitBoxEvent
Triggered when a player interacts with a model's hitbox at some position.

This event corresponds to a right-click interaction.

Since:
2.0.0
  • Constructor Details

    • HitBoxInteractAtEvent

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