コード例 #1
0
  @Override
  protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {

    super.drawGuiContainerForegroundLayer(mouseX, mouseY);

    fontRendererObj.drawString(MFRUtil.localize("info.cofh.stored") + ':', 8, 54, 4210752);
    String v = String.valueOf(_dsu.getQuantity());
    fontRendererObj.drawString(v, 8 + maxWidth - fontRendererObj.getStringWidth(v), 80, 4210752);
  }
コード例 #2
0
  @Override
  public void detectAndSendChanges() {
    super.detectAndSendChanges();
    for (int i = 0; i < crafters.size(); i++) {
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 100, _dsu.getIsSideOutput(0) ? 1 : 0);
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 101, _dsu.getIsSideOutput(1) ? 1 : 0);
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 102, _dsu.getIsSideOutput(2) ? 1 : 0);
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 103, _dsu.getIsSideOutput(3) ? 1 : 0);
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 104, _dsu.getIsSideOutput(4) ? 1 : 0);
      ((ICrafting) crafters.get(i))
          .sendProgressBarUpdate(this, 105, _dsu.getIsSideOutput(5) ? 1 : 0);

      ((ICrafting) crafters.get(i)).sendProgressBarUpdate(this, 200, _dsu.getQuantity());
      ((ICrafting) crafters.get(i)).sendProgressBarUpdate(this, 201, _dsu.getQuantity() >> 16);
    }
  }