Workorder to json work
This commit is contained in:
@@ -11,6 +11,7 @@ package engine.loot;
|
||||
import engine.mbEnums;
|
||||
import engine.objects.Item;
|
||||
import engine.objects.NPC;
|
||||
import org.json.simple.JSONValue;
|
||||
|
||||
import java.time.Duration;
|
||||
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
|
||||
public long getDelay(TimeUnit unit) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user