Debug comment update
This commit is contained in:
@@ -13,6 +13,10 @@ import engine.objects.Item;
|
||||
import engine.objects.NPC;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.Delayed;
|
||||
@@ -58,6 +62,11 @@ public class WorkOrder implements Delayed {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
|
||||
LocalDateTime localDateTime = Instant.ofEpochMilli(this.completionTime)
|
||||
.atZone(ZoneId.systemDefault()).toLocalDateTime();
|
||||
Duration duration = Duration.ofMillis(38114000);
|
||||
|
||||
String outSTring = "\r\nwordOrderID: " + this.workOrderID + "\r\n" +
|
||||
"vendor: " + this.vendor.getObjectUUID() + "\r\n" +
|
||||
"slotCount: " + this.slotCount + "\r\n" +
|
||||
@@ -67,8 +76,8 @@ public class WorkOrder implements Delayed {
|
||||
"itemName: " + this.itemName + "\r\n" +
|
||||
"prefixToken: " + this.prefixToken + "\r\n" +
|
||||
"suffixToken: " + this.suffixToken + "\r\n" +
|
||||
"rollingDuration: " + this.rollingDuration + "\r\n" +
|
||||
"completionTime: " + this.completionTime + "\r\n" +
|
||||
"rollingDuration: " + duration + "\r\n" +
|
||||
"completionTime: " + localDateTime + "\r\n" +
|
||||
"runCompleted: " + this.runCompleted + "\r\n" +
|
||||
"runCanceled: " + this.runCanceled + "\r\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user