PlayerInteractWithEntityEvent

Called when a player interacts with an entity as a whole.

This is used for interactions where it only matters that an entity was interacted with, not where on the entity the interaction occurred.

Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
abstract val hand: Hand

The hand that the player used to interact with the target.

Link copied to clipboard
abstract val player: Player

The player involved in this event.

Link copied to clipboard
abstract val target: Entity

The entity that was interacted with.