Class 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.
Since:
1.8
  • Constructor Details

    • PlayerInteractAtEntityEvent

      @Internal public PlayerInteractAtEntityEvent(@NotNull @NotNull Player player, @NotNull @NotNull Entity clickedEntity, @NotNull @NotNull Vector position)
    • PlayerInteractAtEntityEvent

      @Internal public PlayerInteractAtEntityEvent(@NotNull @NotNull Player player, @NotNull @NotNull Entity clickedEntity, @NotNull @NotNull Vector position, @NotNull @NotNull EquipmentSlot hand)
  • Method Details

    • getClickedPosition

      @NotNull public @NotNull Vector getClickedPosition()
      Since:
      1.8