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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the player that clicked the NPC.static HandlerListbooleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
NPCClickEvent
 
- 
- 
Method Details- 
getClickerGets the player that clicked the NPC.- Returns:
- Player that clicked the NPC
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Cancellable
 
- 
setCancelledpublic void setCancelled(boolean cancelled) - Specified by:
- setCancelledin interface- Cancellable
 
- 
getHandlerList
 
-