Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package raxicax.alchemist.renderer;
- import org.lwjgl.opengl.GL11;
- import raxicax.alchemist.model.ModelAlchemyCauldron;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- public class RenderAlchemyCauldron extends TileEntitySpecialRenderer {
- private static final ResourceLocation texture = new ResourceLocation("alchm:textures/model/modelalchemycauldron.png");
- public ModelAlchemyCauldron model;
- public void RenderObsidianTable() {
- this.model = new ModelAlchemyCauldron();
- }
- @Override
- public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
- GL11.glPushMatrix();
- GL11.glTranslatef((float) x + 0.0F, (float) y + 0.0F, (float) z + 0.0F);
- GL11.glRotatef(180, 0F, 0F, 1F);
- this.bindTexture(texture);
- GL11.glPushMatrix();
- this.model.renderModel(0.0625F); // <-- This line
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement