public class NPCSpawnEvent extends NPCEvent implements org.bukkit.event.Cancellable
Constructor and Description |
---|
NPCSpawnEvent(NPC npc,
org.bukkit.Location location,
SpawnReason reason) |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
org.bukkit.Location |
getLocation()
Gets the location where the NPC was spawned.
|
SpawnReason |
getReason()
Gets the reason for spawning the NPC.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
public NPCSpawnEvent(NPC npc, org.bukkit.Location location, SpawnReason reason)
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public org.bukkit.Location getLocation()
public SpawnReason getReason()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
public static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2021. All rights reserved.