Guest User

Untitled

a guest
Sep 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. //Render//
  2. package net.minecraft.src;
  3.  
  4. import org.lwjgl.opengl.GL11;
  5.  
  6. public class JarRender extends TileEntitySpecialRenderer{
  7.  
  8. public JarRender()
  9. {
  10. aModel = new ModelJar();
  11. }
  12.  
  13. public void renderAModelAt(TileEntityJar tileentity1, double d, double d1, double d2, float f)
  14. {
  15. GL11.glPushMatrix();
  16. GL11.glTranslatef((float) d + 0.5F, (float) d1 + 0.5F, (float) d2 + 0.5F);
  17. bindTextureByName("Mod Source/Jar1.png");
  18. GL11.glPushMatrix();
  19. aModel.renderModel(0.0625F);
  20. GL11.glPopMatrix();
  21. GL11.glPopMatrix();
  22. }
  23.  
  24. public void renderTileEntityAt(TileEntity tileentity, double d, double d1, double d2, float f)
  25. {
  26. renderAModelAt((TileEntityJar)tileentity, d, d1, d2, f);
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. private ModelJar aModel;
  36. }
Add Comment
Please, Sign In to add comment