package net.minecraft.client.renderer.entity;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBlaze;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityBlaze;
import net.minecraft.util.ResourceLocation;

@SideOnly(Side.CLIENT)
public class RenderBlaze extends RenderLiving
{
	private static final ResourceLocation blazeTextures = new ResourceLocation("textures/entity/blaze.png");
	private int field_77068_a;
	private static final String __OBFID = "CL_00000980";

	public RenderBlaze()
	{
		super(new ModelBlaze(), 0.5F);
		this.field_77068_a = ((ModelBlaze)this.mainModel).func_78104_a();
	}

	public void doRender(EntityBlaze par1EntityBlaze, double par2, double par4, double par6, float par8, float par9)
	{
		int i = ((ModelBlaze)this.mainModel).func_78104_a();

		if (i != this.field_77068_a)
		{
			this.field_77068_a = i;
			this.mainModel = new ModelBlaze();
		}

		super.doRender((EntityLiving)par1EntityBlaze, par2, par4, par6, par8, par9);
	}

	protected ResourceLocation getEntityTexture(EntityBlaze par1EntityBlaze)
	{
		return blazeTextures;
	}

	public void doRender(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
	{
		this.doRender((EntityBlaze)par1EntityLiving, par2, par4, par6, par8, par9);
	}

	public void doRender(EntityLivingBase par1Entity, double par2, double par4, double par6, float par8, float par9)
	{
		this.doRender((EntityBlaze)par1Entity, par2, par4, par6, par8, par9);
	}

	protected ResourceLocation getEntityTexture(Entity par1Entity)
	{
		return this.getEntityTexture((EntityBlaze)par1Entity);
	}

	public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
	{
		this.doRender((EntityBlaze)par1Entity, par2, par4, par6, par8, par9);
	}
}