Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Render//
- package net.minecraft.src;
- import org.lwjgl.opengl.GL11;
- public class JarRender extends TileEntitySpecialRenderer{
- public JarRender()
- {
- aModel = new ModelJar();
- }
- public void renderAModelAt(TileEntityJar tileentity1, double d, double d1, double d2, float f)
- {
- GL11.glPushMatrix();
- GL11.glTranslatef((float) d + 0.5F, (float) d1 + 0.5F, (float) d2 + 0.5F);
- bindTextureByName("Mod Source/Jar1.png");
- GL11.glPushMatrix();
- aModel.renderModel(0.0625F);
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- public void renderTileEntityAt(TileEntity tileentity, double d, double d1, double d2, float f)
- {
- renderAModelAt((TileEntityJar)tileentity, d, d1, d2, f);
- }
- private ModelJar aModel;
- }
Add Comment
Please, Sign In to add comment