|
|
@ -11,6 +11,7 @@ package engine.loot; |
|
|
|
import engine.mbEnums; |
|
|
|
import engine.mbEnums; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.NPC; |
|
|
|
import engine.objects.NPC; |
|
|
|
|
|
|
|
import org.json.simple.JSONValue; |
|
|
|
|
|
|
|
|
|
|
|
import java.time.Duration; |
|
|
|
import java.time.Duration; |
|
|
|
import java.time.Instant; |
|
|
|
import java.time.Instant; |
|
|
@ -49,6 +50,12 @@ public class WorkOrder implements Delayed { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String toJson(WorkOrder workOrder) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String jsonString = JSONValue.toJSONString(workOrder); |
|
|
|
|
|
|
|
return jsonString; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public long getDelay(TimeUnit unit) { |
|
|
|
public long getDelay(TimeUnit unit) { |
|
|
|
|
|
|
|
|
|
|
|