Package org.bukkit.event.player
Class PlayerInteractAtEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerInteractEntityEvent
org.bukkit.event.player.PlayerInteractAtEntityEvent
- All Implemented Interfaces:
Cancellable
public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent
Represents an event that is called when a player right clicks an entity that
also contains the location where the entity was clicked.
Note that the client may sometimes spuriously send this packet in addition to
Note that the client may sometimes spuriously send this packet in addition to
PlayerInteractEntityEvent
.
Users are advised to listen to this (parent) class unless specifically required.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position)
PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand)
-
Method Summary
Modifier and Type Method Description Vector
getClickedPosition()
static HandlerList
getHandlerList()
HandlerList
getHandlers()
Methods inherited from class org.bukkit.event.player.PlayerInteractEntityEvent
getHand, getRightClicked, isCancelled, setCancelled
-
Constructor Details
-
Method Details
-
getClickedPosition
-
getHandlers
- Overrides:
getHandlers
in classPlayerInteractEntityEvent
-
getHandlerList
-