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.
    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.
    • 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)