Class HitBoxInteractEvent
java.lang.Object
kr.toxicity.model.api.event.hitbox.HitBoxInteractEvent
- All Implemented Interfaces:
CancellableEvent,HitBoxEvent,ModelEvent
Triggered when a player interacts with a model's hitbox.
This event corresponds to a right-click interaction.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionHitBoxInteractEvent(@NotNull PlatformPlayer who, @NotNull HitBox hitBox, @NotNull ModelInteractionHand hand) Creates a new HitBoxInteractEvent. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.event.CancellableEvent
call, isCancelled, setCancelledMethods inherited from interface kr.toxicity.model.api.event.hitbox.HitBoxEvent
getHitBox
-
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 interactinghitBox- the hitbox being interacted withhand- the hand used for interaction- Since:
- 2.0.0
-