SHARE
TWEET

RenderKirito

a guest Feb 19th, 2019 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.lavapower.animemod.renders;
  2.  
  3. import fr.lavapower.animemod.AnimeMod;
  4. import fr.lavapower.animemod.entities.EntityKirito;
  5. import net.minecraft.client.model.ModelBiped;
  6. import net.minecraft.client.renderer.entity.RenderLiving;
  7. import net.minecraft.client.renderer.entity.RenderManager;
  8. import net.minecraft.util.ResourceLocation;
  9. import net.minecraftforge.fml.relauncher.Side;
  10. import net.minecraftforge.fml.relauncher.SideOnly;
  11.  
  12. @SideOnly(Side.CLIENT)
  13. public class RenderKirito extends RenderLiving<EntityKirito>
  14. {
  15.     private static final ResourceLocation KIRITO_TEXTURES = new ResourceLocation(AnimeMod.MODID + ":textures/entities/kirito.png");
  16.  
  17.     /**
  18.      * Instantiates a new render pig test.
  19.      * @param p_i47198_1_ the p i 47198 1
  20.      */
  21.     public RenderKirito(RenderManager manager)
  22.     {
  23.         super(manager, new ModelBiped(), 0.7F);
  24.     }
  25.  
  26.     /**
  27.      * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
  28.      * @param entity the entity
  29.      * @return the entity texture
  30.      */
  31.     @Override
  32.     protected ResourceLocation getEntityTexture(EntityKirito entity)
  33.     {
  34.         return KIRITO_TEXTURES;
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top