public void renderTileEntityAt(TileEntityArmorStand armorStand, double x, double y, double z, float par8) {
int rotation = armorStand.rotation * 360 / 16;
ModelArmorStand model = armorStandModel;
bindTexture(Resources.textureArmorStand);
GL11.glPushMatrix();
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslated(x, y + 2.0, z + 1.0);
GL11.glScalef(1.0F, -1.0F, -1.0F);
GL11.glTranslated(0.5F, 0.5F, 0.5F);
model.setRotation(rotation);
model.renderAll();
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
GL11.glPopMatrix();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);