Advertisement
Guest User

Untitled

a guest
Jul 8th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1.     @Override
  2.     public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) {
  3.  
  4.         GL11.glPushMatrix();
  5.         GL11.glTranslatef((float) x + 0.5F, (float) y + 1.75F, (float) z + 0.5F);
  6.         ResourceLocation textures = (new ResourceLocation("geomancy:models/storage.png"));
  7.         Minecraft.getMinecraft().renderEngine.bindTexture(textures);
  8.         GL11.glPushMatrix();
  9.         GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
  10.         if (te.getBlockMetadata() == 0) {
  11.             GL11.glPushMatrix();
  12.             GL11.glScale(0.0675F);
  13.             this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 1.0F);
  14.             GL11.glPopMatrix();
  15.         }
  16.         if (te.getBlockMetadata() == 1) {
  17.             GL11.glPushMatrix();
  18.             GL11.glScale(0.0725F);
  19.             this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 1.0F);
  20.             GL11.glPopMatrix();
  21.         }
  22.  
  23.         GL11.glPopMatrix();
  24.         GL11.glPopMatrix();
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement