Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) {
- GL11.glPushMatrix();
- GL11.glTranslatef((float) x + 0.5F, (float) y + 1.75F, (float) z + 0.5F);
- ResourceLocation textures = (new ResourceLocation("geomancy:models/storage.png"));
- Minecraft.getMinecraft().renderEngine.bindTexture(textures);
- GL11.glPushMatrix();
- GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
- if (te.getBlockMetadata() == 0) {
- this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
- }
- if (te.getBlockMetadata() == 1) {
- this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0725F);
- }
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement