@Override public void initGui() { super.initGui(); int j = (width - xSize) / 2; int k = (height - ySize) / 2; FluidTankInfo[] info = tile.getTankInfo(null); input = new TankDisplay(info[0], j + 53, k + 23, 16, 70); output = new TankDisplay(info[1], j + 80, k + 23, 16, 70); waste = new TankDisplay(info[2], j + 107, k + 23, 16, 70); }
@Override protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) { int j = (width - xSize) / 2; int k = (height - ySize) / 2; super.drawGuiContainerBackgroundLayer(par1, par2, par3); /* int i2 = tile.getWaterScaled(60); this.drawTexturedModalRect(j+17, k+78-i2, 208, 80-i2, 16, i2); int i4 = tile.getAmmoniaScaled(60); this.drawTexturedModalRect(j+134, k+78-i4, 224, 80-i4, 16, i4); */ FluidTankInfo[] info = tile.getTankInfo(null); input.updateTank(info[0]).render(true); output.updateTank(info[1]).render(true); waste.updateTank(info[2]).render(true); }