Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mymod.entity.EntityRifleBolt;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.renderer.entity.RenderLiving;
- import net.minecraft.entity.Entity;
- import net.minecraft.util.ResourceLocation;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- @SideOnly(Side.CLIENT)
- public class RenderRifleBolt extends RenderLiving {
- private static final ResourceLocation RifleBolt = new ResourceLocation("mymod:textures/entity/RifleBolt.png"); //refers to:assets/yourmod/textures/entity/yourtexture.png
- public RenderRifleBolt(ModelBase par1ModelBase, float par2)
- {
- super(par1ModelBase, par2);
- }
- @Override
- protected ResourceLocation getEntityTexture(Entity par1Entity)
- {
- return RifleBolt;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment