Package kr.toxicity.model.api.event
Class ModelInteractEvent
java.lang.Object
kr.toxicity.model.api.event.ModelInteractEvent
- All Implemented Interfaces:
CancellableEvent,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
ConstructorsConstructorDescriptionModelInteractEvent(@NotNull PlatformPlayer who, @NotNull HitBox hitbox, @NotNull ModelInteractionHand hand) Creates a new ModelInteractEvent. -
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
isCancelled, setCancelledMethods inherited from interface kr.toxicity.model.api.event.ModelEvent
call
-
Constructor Details
-
ModelInteractEvent
@Internal public ModelInteractEvent(@NotNull @NotNull PlatformPlayer who, @NotNull @NotNull HitBox hitbox, @NotNull @NotNull ModelInteractionHand hand) Creates a new ModelInteractEvent.- Parameters:
who- the player interactinghitbox- the hitbox being interacted withhand- the hand used for interaction- Since:
- 2.0.0
-