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
Represents an event that is called when a player right clicks an entity that
also contains the location where the entity was clicked.
- Since:
- 1.8
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerInteractEntityEvent
clickedEntityFields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractAtEntityEvent(@NotNull Player player, @NotNull Entity clickedEntity, @NotNull Vector position) PlayerInteractAtEntityEvent(@NotNull Player player, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand) -
Method Summary
Methods inherited from class PlayerInteractEntityEvent
getHand, getHandlerList, getHandlers, getRightClicked, isCancelled, setCancelledMethods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerInteractAtEntityEvent
-
PlayerInteractAtEntityEvent
@Internal public PlayerInteractAtEntityEvent(@NotNull @NotNull Player player, @NotNull @NotNull Entity clickedEntity, @NotNull @NotNull Vector position, @NotNull @NotNull EquipmentSlot hand)
-
-
Method Details
-
getClickedPosition
- Since:
- 1.8
-