Exemplo n.º 1
0
  @Override
  protected void drawGuiContainerForegroundLayer(int a, int b) {
    int j = (width - xSize) / 2;
    int k = (height - ySize) / 2;

    super.drawGuiContainerForegroundLayer(a, b);

    if (ReikaGuiAPI.instance.isMouseInBox(j + 138, j + 145, k + 17, k + 68)) {
      int mx = ReikaGuiAPI.instance.getMouseRealX();
      int my = ReikaGuiAPI.instance.getMouseRealY();
      ReikaGuiAPI.instance.drawTooltipAt(
          fontRenderer, String.format("%d/%d", fct.getLevel(), fct.CAPACITY), mx - j, my - k);
    }
  }