    001    package net.minecraft.client.renderer.entity;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import net.minecraft.client.model.ModelBlaze;
    006    import net.minecraft.entity.Entity;
    007    import net.minecraft.entity.EntityLiving;
    008    import net.minecraft.entity.monster.EntityBlaze;
    009
    010    @SideOnly(Side.CLIENT)
    011    public class RenderBlaze extends RenderLiving
    012    {
    013        private int field_77068_a;
    014
    015        public RenderBlaze()
    016        {
    017            super(new ModelBlaze(), 0.5F);
    018            this.field_77068_a = ((ModelBlaze)this.mainModel).func_78104_a();
    019        }
    020
    021        public void renderBlaze(EntityBlaze par1EntityBlaze, double par2, double par4, double par6, float par8, float par9)
    022        {
    023            int var10 = ((ModelBlaze)this.mainModel).func_78104_a();
    024
    025            if (var10 != this.field_77068_a)
    026            {
    027                this.field_77068_a = var10;
    028                this.mainModel = new ModelBlaze();
    029            }
    030
    031            super.doRenderLiving(par1EntityBlaze, par2, par4, par6, par8, par9);
    032        }
    033
    034        public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
    035        {
    036            this.renderBlaze((EntityBlaze)par1EntityLiving, par2, par4, par6, par8, par9);
    037        }
    038
    039        /**
    040         * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
    041         * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
    042         * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
    043         * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
    044         */
    045        public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
    046        {
    047            this.renderBlaze((EntityBlaze)par1Entity, par2, par4, par6, par8, par9);
    048        }
    049    }