Guest User

Render Class Code

a guest
Sep 28th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package mymod.entity.EntityRifleBolt;
  2.  
  3. import net.minecraft.client.model.ModelBase;
  4. import net.minecraft.client.renderer.entity.RenderLiving;
  5. import net.minecraft.entity.Entity;
  6. import net.minecraft.util.ResourceLocation;
  7. import cpw.mods.fml.relauncher.Side;
  8. import cpw.mods.fml.relauncher.SideOnly;
  9. @SideOnly(Side.CLIENT)
  10. public class RenderRifleBolt extends RenderLiving {
  11.  
  12. private static final ResourceLocation RifleBolt = new ResourceLocation("mymod:textures/entity/RifleBolt.png"); //refers to:assets/yourmod/textures/entity/yourtexture.png
  13.  
  14. public RenderRifleBolt(ModelBase par1ModelBase, float par2)
  15. {
  16. super(par1ModelBase, par2);
  17. }
  18.  
  19. @Override
  20. protected ResourceLocation getEntityTexture(Entity par1Entity)
  21. {
  22. return RifleBolt;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment