Citizens2/main/java/net/citizensnpcs/NPCNeedsRespawnEvent.java

32 lines
676 B
Java
Raw Normal View History

2016-11-17 08:53:41 +01:00
package net.citizensnpcs;
import net.citizensnpcs.api.event.NPCEvent;
import net.citizensnpcs.api.npc.NPC;
import org.bukkit.Location;
import org.bukkit.event.HandlerList;
public class NPCNeedsRespawnEvent extends NPCEvent {
private final Location spawn;
public NPCNeedsRespawnEvent(NPC npc, Location at) {
super(npc);
this.spawn = at;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public Location getSpawnLocation() {
return spawn;
}
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
}
}