use of logisticspipes.pipes.basic.debug.StatusEntry in project LogisticsPipes by RS485.
the class ModuleActiveSupplier method addStatusInformation.
public void addStatusInformation(List<StatusEntry> status) {
StatusEntry entry = new StatusEntry();
entry.name = "Requested Items";
entry.subEntry = new ArrayList<>();
for (Entry<ItemIdentifier, Integer> part : _requestedItems.entrySet()) {
StatusEntry subEntry = new StatusEntry();
subEntry.name = part.toString();
entry.subEntry.add(subEntry);
}
status.add(entry);
}
use of logisticspipes.pipes.basic.debug.StatusEntry in project LogisticsPipes by RS485.
the class UpdateStatusEntries method readData.
@Override
public void readData(LPDataInput input) {
windowID = input.readInt();
status = input.readArrayList(new IReadListObject<StatusEntry>() {
@Override
public StatusEntry readObject(LPDataInput input) {
StatusEntry status = new StatusEntry();
status.name = input.readUTF();
if (input.readBoolean()) {
status.subEntry = input.readArrayList(this);
}
return status;
}
});
}
use of logisticspipes.pipes.basic.debug.StatusEntry in project LogisticsPipes by RS485.
the class CoreRoutedPipe method addStatusInformation.
@Override
public void addStatusInformation(List<StatusEntry> status) {
StatusEntry entry = new StatusEntry();
entry.name = "Send Queue";
entry.subEntry = new ArrayList<>();
for (Triplet<IRoutedItem, ForgeDirection, ItemSendMode> part : _sendQueue) {
StatusEntry subEntry = new StatusEntry();
subEntry.name = part.toString();
entry.subEntry.add(subEntry);
}
status.add(entry);
entry = new StatusEntry();
entry.name = "In Transit To Me";
entry.subEntry = new ArrayList<>();
for (ItemRoutingInformation part : _inTransitToMe) {
StatusEntry subEntry = new StatusEntry();
subEntry.name = part.toString();
entry.subEntry.add(subEntry);
}
status.add(entry);
}
Aggregations