Class NPCClickEvent

All Implemented Interfaces:
Direct Known Subclasses:
NPCLeftClickEvent, NPCRightClickEvent

public abstract class NPCClickEvent extends NPCEvent implements Cancellable
Represents an event where an NPC was clicked by a player.
  • Constructor Details

    • NPCClickEvent

      protected NPCClickEvent(NPC npc, Player clicker)
  • Method Details

    • getClicker

      public Player getClicker()
      Gets the player that clicked the NPC.
      Player that clicked the NPC
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlerList

      public static HandlerList getHandlerList()