package net.minecraft.client.renderer.entity;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBase;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityChicken;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;

@SideOnly(Side.CLIENT)
public class RenderChicken extends RenderLiving
{
	private static final ResourceLocation chickenTextures = new ResourceLocation("textures/entity/chicken.png");
	private static final String __OBFID = "CL_00000983";

	public RenderChicken(ModelBase par1ModelBase, float par2)
	{
		super(par1ModelBase, par2);
	}

	public void doRender(EntityChicken par1EntityChicken, double par2, double par4, double par6, float par8, float par9)
	{
		super.doRender((EntityLiving)par1EntityChicken, par2, par4, par6, par8, par9);
	}

	protected ResourceLocation getEntityTexture(EntityChicken par1EntityChicken)
	{
		return chickenTextures;
	}

	protected float handleRotationFloat(EntityChicken par1EntityChicken, float par2)
	{
		float f1 = par1EntityChicken.field_70888_h + (par1EntityChicken.field_70886_e - par1EntityChicken.field_70888_h) * par2;
		float f2 = par1EntityChicken.field_70884_g + (par1EntityChicken.destPos - par1EntityChicken.field_70884_g) * par2;
		return (MathHelper.sin(f1) + 1.0F) * f2;
	}

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

	protected float handleRotationFloat(EntityLivingBase par1EntityLivingBase, float par2)
	{
		return this.handleRotationFloat((EntityChicken)par1EntityLivingBase, par2);
	}

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

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

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