Advertisement
Guest User

Untitled

a guest
Sep 6th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Render File:
  2.  
  3.  
  4. package com.animalcraft.animal;
  5.  
  6. import com.animalcraft.util.Ref;
  7. import net.minecraft.client.model.ModelBase;
  8. import net.minecraft.client.renderer.entity.RenderLiving;
  9. import net.minecraft.entity.Entity;
  10. import net.minecraft.util.ResourceLocation;
  11.  
  12. public class RenderRedPanda extends RenderLiving
  13. {
  14.  
  15. private static final ResourceLocation mobTextures = new ResourceLocation(Ref.MODID + ":textures/entity/RedPanda.png");
  16.  
  17. public RenderRedPanda(ModelBase par1ModelBase, float par2) {
  18. super(par1ModelBase, par2);
  19. }
  20.  
  21. protected ResourceLocation getEntityTexture(EntityRedPanda entity)
  22. {
  23. return mobTextures;
  24. }
  25.  
  26. protected ResourceLocation getEntityTexture(Entity entity)
  27. {
  28. return this.getEntityTexture((EntityRedPanda)entity);
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement