return;
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glColor3f(1.0F, 1.0F, 1.0F);
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
drawTexturedModalRect(posX, posY, 0, 0, 18, 73);
int iconHeightRemainder = (73 - 4) % 16;
FluidStack fluid = tank.getFluid();
if (fluid != null && fluid.amount > 0)
{
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
Icon fluidIcon = fluid.getFluid().getStillIcon();
if (iconHeightRemainder > 0)
{
drawTexturedModelRectFromIcon(posX + 1, posY + 2, fluidIcon, 16, iconHeightRemainder);
}
for (int i = 0; i < (73 - 6) / 16; i++)
{
drawTexturedModelRectFromIcon(posX + 1, posY + 2 + i * 16 + iconHeightRemainder, fluidIcon, 16, 16);
}
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
drawTexturedModalRect(posX + 2, posY + 1, 1, 1, 15, 72 - ((int) ((73) * ((float) fluid.amount / tank.getCapacity()))));
}
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/gui/fluidtank.png"));
drawTexturedModalRect(posX + 1, posY + 1, 19, 1, 16, 73);
GL11.glEnable(GL11.GL_LIGHTING);
}