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.
  • Constructor Details

    • 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 Details

    • getClickedPosition

      @NotNull public Vector getClickedPosition()