ModelInteractEvent

Triggered when a player interacts with a model's hitbox.

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)
Creates a new ModelInteractEvent.

Functions

Link copied to clipboard
@NotNull
open fun call(): @NotNull BetterModelEventBus.Result
Dispatches this event to the global event bus.
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.