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 toPlayerInteractEntityEvent
. Users are advised to listen to this (parent) class unless specifically required.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.player.PlayerInteractEntityEvent
clickedEntity
-
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
-
Constructor Summary
Constructors Constructor Description PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position)
PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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
-
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
PlayerInteractAtEntityEvent
public PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position)
-
PlayerInteractAtEntityEvent
public PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand)
-
-
Method Detail
-
getClickedPosition
@NotNull public Vector getClickedPosition()
-
getHandlers
@NotNull public HandlerList getHandlers()
- Overrides:
getHandlers
in classPlayerInteractEntityEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-