Guest User

Untitled

a guest
Dec 17th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. package jip.jipmod.init.modEntityClasses;
  2.  
  3. import jip.jipmod.JipMod;
  4. import jip.jipmod.Reference;
  5. import net.minecraft.client.model.ModelBase;
  6. import net.minecraft.client.renderer.entity.RenderLiving;
  7. import net.minecraft.client.renderer.entity.RenderManager;
  8. import net.minecraft.entity.Entity;
  9. import net.minecraft.entity.EntityLivingBase;
  10. import net.minecraft.util.ResourceLocation;
  11.  
  12. public class RenderHorror extends RenderLiving {
  13.  
  14. protected ResourceLocation horrorTexture;
  15.  
  16. public RenderHorror(RenderManager p_i46153_1_, ModelBase par1ModelBase, float parShadowSize) {
  17. super(p_i46153_1_, par1ModelBase, parShadowSize);
  18. // TODO Auto-generated constructor stub
  19. setEntityTexture();
  20. }
  21.  
  22. protected void preRenderCallBack(EntityLivingBase entity, float f){
  23. preRenderCallbackHorror((EntityHorror) entity, f);
  24. }
  25.  
  26. protected void preRenderCallbackHorror(EntityHorror entity, float f){
  27.  
  28. }
  29.  
  30. protected void setEntityTexture(){
  31. horrorTexture = new ResourceLocation(Reference.MOD_ID+":textures/entity/horror.png");
  32. }
  33.  
  34. @Override
  35. protected ResourceLocation getEntityTexture(Entity entity) {
  36. // TODO Auto-generated method stub
  37. return horrorTexture;
  38. }
  39.  
  40.  
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment