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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the player that clicked the NPC.static HandlerListbooleanvoidsetCancelled(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:
getHandlersin classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-