Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.spideynn.moddedmod.wasteland.renderer;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- import net.spideynn.moddedmod.wasteland.mod_Wasteland;
- import net.spideynn.moddedmod.wasteland.blocks.ModelTrashCan;
- public class RendererTrashCan extends TileEntitySpecialRenderer {
- private ModelTrashCan model;
- private static final ResourceLocation texture = new ResourceLocation(mod_Wasteland.modid, "textures/model/trashcan.png");
- public RendererTrashCan() {
- this.model = new ModelTrashCan();
- }
- public void renderTileEntityAt(TileEntity tileentity, 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, 0, 0, 1F);
- this.bindTexture(texture);
- GL11.glPushMatrix();
- model.renderModel(0.0625F);
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement