Class PlayerInteractEntity

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

    public final class PlayerInteractEntity
    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
      PlayerInteractEntity​(org.bukkit.entity.Player player, org.bukkit.inventory.EquipmentSlot equipmentSlot, org.bukkit.entity.Entity entity)
      PlayerInteractEntity This event is called when a player right clicks entity in a Domain field
    • Constructor Detail

      • PlayerInteractEntity

        public PlayerInteractEntity​(org.bukkit.entity.Player player,
                                    org.bukkit.inventory.EquipmentSlot equipmentSlot,
                                    org.bukkit.entity.Entity entity)
        PlayerInteractEntity This event is called when a player right clicks entity in a Domain field
        Parameters:
        player - The player that ran the command
        equipmentSlot - The hand used to interact
        entity - The entity being interacted with
    • Method Detail

      • getHand

        public org.bukkit.inventory.EquipmentSlot getHand()
      • 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