Citizens2/src/main/java/net/citizensnpcs/NPCUpdater.java
2012-02-26 01:20:11 -06:00

21 lines
487 B
Java

package net.citizensnpcs;
import net.citizensnpcs.api.npc.NPC;
import net.citizensnpcs.npc.CitizensNPCManager;
public class NPCUpdater implements Runnable {
private final CitizensNPCManager npcManager;
public NPCUpdater(CitizensNPCManager npcManager) {
this.npcManager = npcManager;
}
@Override
public void run() {
for (NPC npc : npcManager) {
if (!npc.isSpawned())
continue;
npc.update();
}
}
}