HitBoxInteractAtEvent

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

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull who: @NotNull PlatformPlayer, @NotNull hitBox: @NotNull HitBox, @NotNull hand: @NotNull ModelInteractionHand, @NotNull position: @NotNull Vector3f)
Creates a new HitBoxInteractAtEvent.

Functions

Link copied to clipboard
open fun call(): Boolean
Dispatches this event to the global event bus.
Link copied to clipboard
@NotNull
abstract fun getHitBox(): @NotNull HitBox
Returns the target hitbox of this event.
Link copied to clipboard
abstract fun isCancelled(): Boolean
Checks if the event has been canceled.
Link copied to clipboard
abstract fun setCancelled(cancel: Boolean)
Sets the cancellation state of the event.