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
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets the location where the NPC was spawned.Gets the reason for spawning the NPC.boolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NPCSpawnEvent
-
-
Method Details
-
getHandlers
- Specified by:
getHandlers
in 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:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-