|
|
@ -20,10 +20,7 @@ import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.concurrent.BlockingQueue; |
|
|
|
import java.util.concurrent.*; |
|
|
|
import java.util.concurrent.DelayQueue; |
|
|
|
|
|
|
|
import java.util.concurrent.ThreadLocalRandom; |
|
|
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
|
|
|
|
|
|
|
|
public enum ForgeManager implements Runnable { |
|
|
|
public enum ForgeManager implements Runnable { |
|
|
@ -32,8 +29,8 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
private static final BlockingQueue<WorkOrder> forge = new DelayQueue<>(); |
|
|
|
private static final BlockingQueue<WorkOrder> forge = new DelayQueue<>(); |
|
|
|
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); |
|
|
|
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); |
|
|
|
public static final HashMap<NPC, ArrayList<WorkOrder>> vendorWorkOrderLookup = new HashMap<>(); |
|
|
|
public static final ConcurrentHashMap<NPC, ArrayList<WorkOrder>> vendorWorkOrderLookup = new ConcurrentHashMap<>(); |
|
|
|
public static final HashMap<Item, WorkOrder> itemWorkOrderLookup = new HashMap<>(); |
|
|
|
public static final ConcurrentHashMap<Item, WorkOrder> itemWorkOrderLookup = new ConcurrentHashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
|
|
|
|