public class RenderHelperMonitorStorageFluid extends RenderHelper
{
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)
{
Tessellator tessellator = Tessellator.instance;
block.setBlockBoundsForItemRender();
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, -1.0F, 0.0F);
renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(0, metadata));
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 1.0F, 0.0F);
renderer.renderFaceYPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(1, metadata));
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 0.0F, -1.0F);
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
renderer.renderFaceZNeg(block, 0.0D, 0.0D, 0.0D, block.getIcon(2, metadata));
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 0.0F, 1.0F);
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
renderer.renderFaceZPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(3, metadata));
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.setNormal(-1.0F, 0.0F, 0.0F);
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
tessellator.setBrightness(15 << 20 | 15 << 6);
tessellator.setColorRGBA_I(0xFFFFFF, 0xFF);
int[] color =
{ 0x1B2344, 0x895CA8, 0xDABDEF };
BlockMonitorStorageFluid terminal = (BlockMonitorStorageFluid) block;
renderer.renderFaceXNeg(block, 0, 0, 0, terminal.baseLayer);
for (int i = 0; i < 3; i++)
{
tessellator.setColorRGBA_I(color[i], 0xFF);
renderer.renderFaceXNeg(block, 0, 0, 0, terminal.colorLayers[i]);
}
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
tessellator.draw();
tessellator.startDrawingQuads();
tessellator.setNormal(1.0F, 0.0F, 0.0F);
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
renderer.renderFaceXPos(block, 0.0D, 0.0D, 0.0D, block.getIcon(5, metadata));
tessellator.addTranslation(0.0F, 0.0F, 0.0F);
tessellator.draw();
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
}