Package net.citizensnpcs.api.event
Class NPCClickEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.NPCClickEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
NPCLeftClickEvent
,NPCRightClickEvent
Represents an event where an NPC was clicked by a player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the player that clicked the NPC.static HandlerList
boolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NPCClickEvent
-
-
Method Details
-
getClicker
Gets the player that clicked the NPC.- Returns:
- Player that clicked the NPC
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-