Class PlayerInteractAtEntity

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public final class PlayerInteractAtEntity
    extends BasePlayer
    implements org.bukkit.event.Cancellable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerInteractAtEntity​(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.util.Vector vector, org.bukkit.entity.Entity entity)  
    • Constructor Detail

      • PlayerInteractAtEntity

        public PlayerInteractAtEntity​(org.bukkit.entity.Player player,
                                      org.bukkit.inventory.EquipmentSlot equipmentSlot,
                                      org.bukkit.util.Vector vector,
                                      org.bukkit.entity.Entity entity)
    • Method Detail

      • getHand

        public org.bukkit.inventory.EquipmentSlot getHand()
      • getVector

        public org.bukkit.util.Vector getVector()
      • getRightClicked

        public org.bukkit.entity.Entity getRightClicked()
      • getCancelReason

        public java.lang.String getCancelReason()
      • setCancelReason

        public void setCancelReason​(java.lang.String cancelReason)
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable