|
|
|
@ -15,8 +15,7 @@ import java.util.concurrent.BlockingQueue;
@@ -15,8 +15,7 @@ import java.util.concurrent.BlockingQueue;
|
|
|
|
|
import java.util.concurrent.DelayQueue; |
|
|
|
|
|
|
|
|
|
public enum Respawner implements Runnable { |
|
|
|
|
Respawner; |
|
|
|
|
|
|
|
|
|
RESPAWNER; |
|
|
|
|
public static BlockingQueue<Mob> respawnQueue = new DelayQueue(); |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -32,12 +31,11 @@ public enum Respawner implements Runnable {
@@ -32,12 +31,11 @@ public enum Respawner implements Runnable {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void startRespawnThread() { |
|
|
|
|
public static void start() { |
|
|
|
|
Thread respawnThread; |
|
|
|
|
respawnThread = new Thread(Respawner); |
|
|
|
|
respawnThread = new Thread(RESPAWNER); |
|
|
|
|
respawnThread.setName("respawnThread"); |
|
|
|
|
respawnThread.start(); |
|
|
|
|
} |
|
|
|
|