Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.playprey.adventure_extreme.Render;
- import org.lwjgl.opengl.GL11;
- import com.playprey.adventure_extreme.Main;
- import com.playprey.adventure_extreme.Models.ModelTableLamp1;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- public class RenderFurnitureTableLamp1 extends TileEntitySpecialRenderer
- {
- ResourceLocation texture = new ResourceLocation(Main.MODID + ":textures/furniture/lamp/ModelTableLamp1.png");
- private ModelTableLamp1 model;
- public RenderFurnitureTableLamp1()
- {
- this.model = new ModelTableLamp1();
- }
- @Override
- public void renderTileEntityAt(TileEntity entity, double x, double y, double z, float f)
- {
- GL11.glPushMatrix();
- GL11.glTranslatef((float)x + 0.5f,(float)y + 1.5f,(float)z + 0.5f);
- GL11.glRotatef(180, 0f, 0f, 1f);
- this.bindTexture(texture);
- GL11.glPushMatrix();
- this.model.renderModel(0.0625f);
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement