Package net.mcft.copy.betterstorage.client.model

Examples of net.mcft.copy.betterstorage.client.model.ModelArmorStand


 
  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);
   
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.client.model.ModelArmorStand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.