Package net.citizensnpcs.api.event
Class NPCSpawnEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.NPCSpawnEvent
- All Implemented Interfaces:
Cancellable
Called when an NPC spawns.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListGets the location where the NPC was spawned.Gets the reason for spawning the NPC.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NPCSpawnEvent
-
-
Method Details
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getLocation
Gets the location where the NPC was spawned.- Returns:
- Location where the NPC was spawned
-
getReason
Gets the reason for spawning the NPC.- Returns:
- Reason for spawning the NPC
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-