PlayerInteractAtEntityEvent

Called when a player interacts with a specific part of an entity.

This is used for interactions that require knowledge of which part of an entity was clicked, such as placing armour on to an armour stand.

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 clickedPosition: Vec3d

The position that the player clicked on the entity.

Link copied to clipboard
abstract val hand: Hand

The hand 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.