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);
}