Guest User

Untitled

a guest
Aug 13th, 2013
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package nyvelia.proxy;
  2.  
  3. import net.minecraft.client.model.ModelBase;
  4. import net.minecraft.client.renderer.entity.Render;
  5. import net.minecraft.entity.Entity;
  6. import net.minecraft.util.ResourceLocation;
  7. import nyvelia.common.MobSanglier;
  8.  
  9. public class RenderSanglier extends Render {
  10.  
  11. protected static final ResourceLocation texture = new ResourceLocation("Nyvelia:ModelSanglier.png");
  12.  
  13.     public RenderSanglier(ModelBase modelBase, float tailleOmbre)
  14.     {
  15.         super(modelBase, tailleOmbre);
  16.     }
  17.  
  18.     protected ResourceLocation func_110870_a(MobSanglier entity)
  19.     {
  20.         return texture;
  21.     }
  22.    
  23.     @Override
  24.     protected ResourceLocation func_110775_a(Entity par1Entity)
  25.     {
  26.         return this.func_110870_a((MobSanglier)par1Entity);
  27.     }
  28.  
  29.     public void renderSanglier(MobSanglier mobSanglier, double d, double d1, double d2, float f, float f1)
  30.     {
  31.         super.doRenderLiving(mobSanglier, d, d1, d2, f, f1);
  32.     }
  33.  
  34.     @Override
  35.     public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
  36.     {
  37.         renderSanglier((MobSanglier)entityliving, d, d1, d2, f, f1);
  38.     }
  39.  
  40.     @Override
  41.     public void doRender(Entity entity, double d, double d1, double d2, float f, float f1)
  42.     {
  43.         renderSanglier((MobSanglier)entity, d, d1, d2, f, f1);
  44.     }
  45.  
  46. }
RAW Paste Data