entity_interact — Events

on entity_interactorg.bukkit.event.player.PlayerInteractEntityEvent
Entity1.0.0

Description

Fires when a player right-clicks an entity.

Variables

player
Player
org.bukkit.entity.Player
NullableNo

The player who right clicked the entity

entity
Entity
org.bukkit.entity.Entity
NullableNo

The entity that was right clicked

item
ItemStack
org.bukkit.inventory.ItemStack
NullableYes

The item in the player's main hand, or null if empty

Examples

on entity_interact:

Related (Entity)