Class HitBoxInteractAtEvent
java.lang.Object
kr.toxicity.model.api.event.hitbox.HitBoxInteractAtEvent
- All Implemented Interfaces:
CancellableEvent, HitBoxEvent, ModelEvent
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 Summary
ConstructorsConstructorDescriptionHitBoxInteractAtEvent(@NotNull PlatformPlayer who, @NotNull HitBox hitBox, @NotNull ModelInteractionHand hand, @NotNull org.joml.Vector3f position) Creates a new HitBoxInteractAtEvent. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CancellableEvent
call, isCancelled, setCancelledMethods inherited from interface HitBoxEvent
getHitBox
-
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 interactinghitBox- the hitbox being interacted withhand- the hand used for interactionposition- position- Since:
- 2.0.0
-