Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package net.spideynn.moddedmod.wasteland.renderer;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
  6. import net.minecraft.tileentity.TileEntity;
  7. import net.minecraft.util.ResourceLocation;
  8. import net.spideynn.moddedmod.wasteland.mod_Wasteland;
  9. import net.spideynn.moddedmod.wasteland.blocks.ModelTrashCan;
  10.  
  11. public class RendererTrashCan extends TileEntitySpecialRenderer {
  12.  
  13.     private ModelTrashCan model;
  14.     private static final ResourceLocation texture = new ResourceLocation(mod_Wasteland.modid, "textures/model/trashcan.png");
  15.    
  16.     public RendererTrashCan() {
  17.         this.model = new ModelTrashCan();
  18.     }
  19.    
  20.     public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
  21.         GL11.glPushMatrix();
  22.         GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F,(float) z + 0.5F);
  23.         GL11.glRotatef(180, 0, 0, 1F);
  24.         this.bindTexture(texture);
  25.         GL11.glPushMatrix();
  26.         model.renderModel(0.0625F);
  27.         GL11.glPopMatrix();
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement