renderer.renderFaceZPos(tile, x, y, z, null);
renderer.renderFaceXNeg(tile, x, y, z, null);
renderer.renderFaceXPos(tile, x, y, z, null);
return true;
}
BlockFactoryGlass block = (BlockFactoryGlass)tile;
int worldHeight = blockAccess.getHeight();
int metadata = blockAccess.getBlockMetadata(x, y, z);
Tessellator tessellator = Tessellator.instance;
tessellator.setBrightness(block.getMixedBrightnessForBlock(blockAccess, x, y, z));
int color = block.getRenderColor(metadata);
float red = (color >> 16 & 255) / 255.0F;
float green = (color >> 8 & 255) / 255.0F;
float blue = (color & 255) / 255.0F;
if (EntityRenderer.anaglyphEnable)
{
float anaglyphRed = (red * 30.0F + green * 59.0F + blue * 11.0F) / 100.0F;
float anaglyphGreen = (red * 30.0F + green * 70.0F) / 100.0F;
float anaglyphBlue = (red * 30.0F + blue * 70.0F) / 100.0F;
red = anaglyphRed;
green = anaglyphGreen;
blue = anaglyphBlue;
}
Icon iconGlass, iconStreaks, iconOverlayTop, iconOverlaySouth, iconOverlayWest;
iconGlass = block.getIcon(0, metadata);
iconStreaks = block.getIcon(0, 16 | metadata);
iconOverlayTop = block.getBlockOverlayTexture(blockAccess, x, y, z, 1);
iconOverlaySouth = block.getBlockOverlayTexture(blockAccess, x, y, z, 2);
iconOverlayWest = block.getBlockOverlayTexture(blockAccess, x, y, z, 5);
double minXGlass = iconGlass.getMinU();
double maxXGlass = iconGlass.getMaxU();
double minYGlass = iconGlass.getMinV();
double maxYGlass = iconGlass.getMaxV();
double minXStreaks = iconStreaks.getMinU();
double maxXStreaks = iconStreaks.getMaxU();
double minYStreaks = iconStreaks.getMinV();
double maxYStreaks = iconStreaks.getMaxV();
double minXSouth = iconOverlaySouth.getMinU();
double maxXSouth = iconOverlaySouth.getMaxU();
double minYSouth = iconOverlaySouth.getMinV();
double maxYSouth = iconOverlaySouth.getMaxV();
double minXWest = iconOverlayWest.getMinU();
double maxXWest = iconOverlayWest.getMaxU();
double minYWest = iconOverlayWest.getMinV();
double maxYWest = iconOverlayWest.getMaxV();
double minXTop = iconOverlayTop.getMinU();
double maxXTop = iconOverlayTop.getMaxU();
double minYTop = iconOverlayTop.getMinV();
double maxYTop = iconOverlayTop.getMaxV();
double xMin = x, xMax = x + 1;
double yMin = y, yMax = y + 1;
double zMin = z, zMax = z + 1;
boolean renderAll = renderer.renderAllFaces;
boolean[] renderSide = {
renderAll || y <= 0 || block.shouldSideBeRendered(blockAccess, x, y - 1, z, 0),
renderAll || y >= worldHeight || block.shouldSideBeRendered(blockAccess, x, y + 1, z, 1),
renderAll || block.shouldSideBeRendered(blockAccess, x, y, z - 1, 2),
renderAll || block.shouldSideBeRendered(blockAccess, x, y, z + 1, 3),
renderAll || block.shouldSideBeRendered(blockAccess, x - 1, y, z, 4),
renderAll || block.shouldSideBeRendered(blockAccess, x + 1, y, z, 5),
};
if (renderSide[1])
{ // UP
tessellator.setColorOpaque_F(red, green, blue);