Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Periodicraft;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- import org.lwjgl.opengl.GL11;
- public class TileEntityLatexBarrelRenderer extends TileEntitySpecialRenderer {
- private ModelLatexBarrel model = new ModelLatexBarrel();
- private static final ResourceLocation texture = new ResourceLocation("periodicraft", "textures/models/LatexBarrel.png");
- @Override
- public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
- GL11.glPushMatrix();
- GL11.glTranslatef((float)x + 0.5F, (float)y + 1.0f, (float)z + 0.5F);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glPushMatrix();
- bindTexture(texture);
- model.render();
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment