@Override public void drawScreen(int i, int j, float k) { drawDefaultBackground(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(gui); int xb = this.width - 176 >> 1; int yb = this.height - 214 >> 1; drawTexturedModalRect(xb, yb, 0, 0, 176, 214); drawCenteredString( this.fontRenderer, StatCollector.translateToLocal("tile.InfMJSrc.name"), this.width / 2, yb + 6, 0xFFFFFF); drawCenteredString( this.fontRenderer, String.format("x:%d, y:%d, z:%d", this.tile.xCoord, this.tile.yCoord, this.tile.zCoord), this.width / 2, yb + 20, 0xFFFFFF); this.fontRenderer.drawStringWithShadow("Energy(MJ)", this.width / 2 - 70, yb + 39, 0xFFFFFF); this.fontRenderer.drawStringWithShadow( "Interval(tick)", this.width / 2 - 70, yb + 88, 0xFFFFFF); drawCenteredString(this.fontRenderer, "1tick=1/20second", this.width / 2, yb + 130, 0xFFFFFF); this.eng.drawTextBox(); this.itv.drawTextBox(); super.drawScreen(i, j, k); }