Advertisement
Guest User

RenderAlchemyCauldron

a guest
Nov 2nd, 2014
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package raxicax.alchemist.renderer;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4. import raxicax.alchemist.model.ModelAlchemyCauldron;
  5. import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
  6. import net.minecraft.tileentity.TileEntity;
  7. import net.minecraft.util.ResourceLocation;
  8.  
  9. public class RenderAlchemyCauldron extends TileEntitySpecialRenderer {
  10.  
  11. private static final ResourceLocation texture = new ResourceLocation("alchm:textures/model/modelalchemycauldron.png");
  12.  
  13. public ModelAlchemyCauldron model;
  14.  
  15. public void RenderObsidianTable() {
  16. this.model = new ModelAlchemyCauldron();
  17. }
  18.  
  19. @Override
  20. public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
  21. GL11.glPushMatrix();
  22.  
  23. GL11.glTranslatef((float) x + 0.0F, (float) y + 0.0F, (float) z + 0.0F);
  24. GL11.glRotatef(180, 0F, 0F, 1F);
  25.  
  26. this.bindTexture(texture);
  27.  
  28. GL11.glPushMatrix();
  29. this.model.renderModel(0.0625F); // <-- This line
  30. GL11.glPopMatrix();
  31.  
  32. GL11.glPopMatrix();
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement