Guest User

Untitled

a guest
Jun 26th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. package ed.enderdeath.mod.entity;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. import ed.enderdeath.mod.common.enderdeath;
  6. import net.minecraft.client.model.ModelBiped;
  7. import net.minecraft.client.renderer.entity.RenderBiped;
  8. import net.minecraft.client.renderer.entity.RenderLiving;
  9. import net.minecraft.entity.Entity;
  10. import net.minecraft.entity.EntityLiving;
  11. import net.minecraft.entity.EntityLivingBase;
  12. import net.minecraft.entity.boss.BossStatus;
  13. import net.minecraft.entity.monster.EntityMob;
  14. import net.minecraft.entity.passive.EntityTameable;
  15. import net.minecraft.util.ResourceLocation;
  16.  
  17. public class RenderFamiliar extends RenderLiving
  18. {
  19. public final ResourceLocation texture = new ResourceLocation(enderdeath.MODID, "textures/entity/Familiar.png");
  20. public final ResourceLocation textureSkin = new ResourceLocation(enderdeath.MODID, "textures/entity/Robber.png");
  21. public RenderFamiliar(ModelH modelH, float shadow)
  22. {
  23. super(modelH, shadow);
  24. }
  25. protected ResourceLocation getEntityTexture(EntityLiving living)
  26. {
  27. return this.Texture((Familiar)living);
  28. }
  29.  
  30. private ResourceLocation Texture(Familiar Familiar)
  31. {
  32. return texture;
  33. }
  34. @Override
  35. protected ResourceLocation getEntityTexture(Entity p_110775_1_) {
  36.  
  37. return texture;
  38. }
  39. public void renderHealtBar(Familiar mob, double x, double y, double z, float par8, float par9)
  40. {
  41. BossStatus.setBossStatus(mob, true);
  42. super.doRender(mob, x, y, z, par8, par9);
  43. }
  44. public void doRender(Entity entity, double x, double y, double z, float par8, float par9)
  45. {
  46. this.renderHealtBar((Familiar)entity, x, y, z, par8, par9);
  47. }
  48. public void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2)
  49. {
  50. this.scaleMob((EntityTameable)par1EntityLivingBase, par2);
  51. }
  52. protected void scaleMob(EntityTameable par1Entitymob, float par2)
  53. {
  54. GL11.glScalef(0.575F, 0.575F, 0.575F);
  55.  
  56. }
  57. public ResourceLocation textureSkin() {
  58. return textureSkin;
  59.  
  60.  
  61. }
  62. }
Add Comment
Please, Sign In to add comment