• 1

    posted a message on Mob textures not loading
    This is my full Render Class:



    package achilleus.sao.mobs.render;

    import achilleus.sao.MainClass;
    import achilleus.sao.mobs.FrenzyBoar;
    import achilleus.sao.mobs.entity.EntityFrenzyBoar;
    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.renderer.entity.RenderLiving;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.EntityLiving;
    import net.minecraft.util.ResourceLocation;

    public class RenderFrenzyBoar extends RenderLiving {
    private static final ResourceLocation EntityTexture = new ResourceLocation("sao:textures/entity/boar/boar.png");
    protected FrenzyBoar model;
    public RenderFrenzyBoar(ModelBase par1ModelBase, float par2) {
    super(par1ModelBase, par2);
    model = ((FrenzyBoar)mainModel);
    }


    public void renderFrenzyBoar(EntityFrenzyBoar entity, double par2, double par4, double par6, float par8, float par9) {
    super.doRender(entity, par2, par4, par6, par8, par9);
    }

    public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) {
    renderFrenzyBoar((EntityFrenzyBoar)par1EntityLiving, par2, par4, par6, par8, par9);
    }

    public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
    renderFrenzyBoar((EntityFrenzyBoar)par1Entity, par2, par4, par6, par8, par9);
    }


    @Override
    protected ResourceLocation getEntityTexture(Entity entity) {

    return EntityTexture;
    }

    }

    Posted in: Modification Development
  • To post a comment, please .