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