Package logisticspipes.pipes.basic.debug

Examples of logisticspipes.pipes.basic.debug.StatusEntry


  public int getAmountForSlot(int i) {
    return dummyInventory.getIDStackInSlot(i).getStackSize();
  }

  public void addStatusInformation(List<StatusEntry> status) {
    StatusEntry entry = new StatusEntry();
    entry.name = "Requested Items";
    entry.subEntry = new ArrayList<StatusEntry>();
    for(Entry<ItemIdentifier, Integer> part:_requestedItems.entrySet()) {
      StatusEntry subEntry = new StatusEntry();
      subEntry.name = part.toString();
      entry.subEntry.add(subEntry);
    }
    status.add(entry);
  }
View Full Code Here


      return Configs.OPAQUE || this.getUpgradeManager().isOpaque();
    }
  }

  public void addStatusInformation(List<StatusEntry> status) {
    StatusEntry entry = new StatusEntry();
    entry.name = "Send Queue";
    entry.subEntry = new ArrayList<StatusEntry>();
    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<StatusEntry>();
    for(ItemRoutingInformation part:_inTransitToMe) {
      StatusEntry subEntry = new StatusEntry();
      subEntry.name = part.toString();
      entry.subEntry.add(subEntry);
    }
    status.add(entry);
  }
View Full Code Here

  public void readData(LPDataInputStream data) throws IOException {
    windowID = data.readInt();
    status = data.readList(new IReadListObject<StatusEntry>() {
      @Override
      public StatusEntry readObject(LPDataInputStream data) throws IOException {
        StatusEntry status = new StatusEntry();
        status.name = data.readUTF();
        if(data.readBoolean()) {
          status.subEntry = data.readList(this);
        }
        return status;
View Full Code Here

TOP

Related Classes of logisticspipes.pipes.basic.debug.StatusEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.