Examples of IOrderInfoProvider


Examples of logisticspipes.routing.order.IOrderInfoProvider

          @Override
          public void handleMouseOverAt(int xPos, int yPos) {
            if(isFullyExtended()) {
              for(Pair<Integer, Integer> key:ordererPosition.keySet()) {
                if(xPos >= key.getValue1() && xPos < key.getValue1() + 18 && yPos >= key.getValue2() && yPos < key.getValue2() + 18) {
                  IOrderInfoProvider order = ordererPosition.get(key);
                  List<String> list = new ArrayList<String>();
                  list.add(ChatColor.BLUE + "Request Type: " + ChatColor.YELLOW + order.getType().name());
                  list.add(ChatColor.BLUE + "Send to Router ID: " + ChatColor.YELLOW + order.getRouterId());
                  BasicGuiHelper.displayItemToolTip(new Object[]{xPos - 10, yPos, order.getItem().makeNormalStack(), true, list}, zLevel, guiLeft, guiTop, false, false);
                }
              }
            } else {
              List<String> list = new ArrayList<String>();
              list.add(ChatColor.BLUE + "Request ID: " + ChatColor.YELLOW + entry.getKey());
View Full Code Here

Examples of logisticspipes.routing.order.IOrderInfoProvider

        drawRect(startLeft - 3, yPos + 21, startLeft + 19, yPos + 23, 0xffffffff);
        drawRect(startLeft - 3, yPos + 21, startLeft - 3 + (22 * list.get(i).getMachineProgress() / 100), yPos + 23, 0xffff0000);
      }
      if(startLeft - 10 < par1 && par1 < startLeft + 20 && yPos - 6 < par2 && par2 < yPos + 20) {
        if(guiLeft < par1 && par1 < guiLeft + xSize - 16 && guiTop < par2 && par2 < guiTop + ySize - 16) {
          IOrderInfoProvider order = list.get(i);
          List<String> tooltipList = new ArrayList<String>();
          tooltipList.add(ChatColor.BLUE + "Request Type: " + ChatColor.YELLOW + order.getType().name());
          tooltipList.add(ChatColor.BLUE + "Send to Router ID: " + ChatColor.YELLOW + order.getRouterId());
          tooltip = new Object[] { (int)(par1 * zoom.zoom - 10), (int)(par2 * zoom.zoom), order.getItem().makeNormalStack(), true, tooltipList };
        }
      }
      startLeft += 30;
    }
    startLeft = xPos + 20 - list.getSubTreeRootSize() * (40 / 2);
View Full Code Here

Examples of logisticspipes.routing.order.IOrderInfoProvider

        drawRect(startLeft - 3, yPos + 21, startLeft + 19, yPos + 23, 0xffffffff);
        drawRect(startLeft - 3, yPos + 21, startLeft - 3 + (22 * list.get(i).getMachineProgress() / 100), yPos + 23, 0xffff0000);
      }
      if(startLeft - 10 < par1 && par1 < startLeft + 20 && yPos - 6 < par2 && par2 < yPos + 20) {
        if(guiLeft < par1 && par1 < guiLeft + xSize - 16 && guiTop < par2 && par2 < guiTop + ySize - 16) {
          IOrderInfoProvider order = list.get(i);
          List<String> tooltipList = new ArrayList<String>();
          tooltipList.add(ChatColor.BLUE + "Request Type: " + ChatColor.YELLOW + order.getType().name());
          tooltipList.add(ChatColor.BLUE + "Send to Router ID: " + ChatColor.YELLOW + order.getRouterId());
          tooltip = new Object[] { (int)(par1 * zoom.zoom - 10), (int)(par2 * zoom.zoom), order.getItem().makeNormalStack(), true, tooltipList };
        }
      }
      startLeft += 30;
    }
    startLeft = xPos + 20 - list.getSubTreeRootSize() * (40 / 2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.