public class RenderElevatorCaller extends TileEntitySpecialRenderer{
@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f){
TileEntityElevatorCaller tile = (TileEntityElevatorCaller)tileentity;
Tessellator tess = Tessellator.instance;
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5, y + 1.5, z + 0.5);
GL11.glScalef(1.0F, -1F, -1F);
// GL11.glRotated(180, 0, 0, 1);
PneumaticCraftUtils.rotateMatrixByMetadata(tileentity.getBlockMetadata());
GL11.glTranslatef(-1, 0, -1);
for(TileEntityElevatorCaller.ElevatorButton button : tile.getFloors()) {
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glDisable(GL11.GL_LIGHTING);
tess.startDrawingQuads();
tess.setColorRGBA_F(button.red, button.green, button.blue, 1F);
tess.addVertex(button.posX + 0.5D, button.posY + 0.5D, 0.499D);