Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lavaInfusionRenderers;
- import lavaInfusionMain.Base;
- import lavaInfusionModels.ModelStonePedestal;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- import org.lwjgl.opengl.GL11;
- public class RenderStonePedestal extends TileEntitySpecialRenderer
- {
- private static final ResourceLocation texture = new ResourceLocation(Base.MODID + ":" + "textures/tileentity/stonePedestal.png");
- private ModelStonePedestal model;
- public RenderStonePedestal()
- {
- this.model = new ModelStonePedestal();
- }
- @Override
- public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f)
- {
- GL11.glPushMatrix(); //rotations and translates
- GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
- GL11.glRotatef(180, 0.0F, 0.0F, 1.0F);
- this.bindTexture(texture);
- GL11.glPushMatrix(); //rendering model
- this.model.renderModel(0.0625F);
- GL11.glPopMatrix();
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment