Advertisement
Guest User

Untitled

a guest
Jul 8th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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. this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
  12. }
  13. if (te.getBlockMetadata() == 1) {
  14. this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0725F);
  15.  
  16. }
  17.  
  18. GL11.glPopMatrix();
  19. GL11.glPopMatrix();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement