package net.minecraft.src;

public class RenderPig extends RenderLiving {
	public RenderPig(ModelBase var1, ModelBase var2, float var3) {
		super(var1, var3);
		this.setRenderPassModel(var2);
	}

	protected int renderSaddledPig(EntityPig var1, int var2, float var3) {
		if(var2 == 0 && var1.getSaddled()) {
			this.loadTexture("/mob/saddle.png");
			return 1;
		} else {
			return -1;
		}
	}

	public void renderLivingPig(EntityPig var1, double var2, double var4, double var6, float var8, float var9) {
		super.doRenderLiving(var1, var2, var4, var6, var8, var9);
	}

	protected int shouldRenderPass(EntityLiving var1, int var2, float var3) {
		return this.renderSaddledPig((EntityPig)var1, var2, var3);
	}

	public void doRenderLiving(EntityLiving var1, double var2, double var4, double var6, float var8, float var9) {
		this.renderLivingPig((EntityPig)var1, var2, var4, var6, var8, var9);
	}

	public void doRender(Entity var1, double var2, double var4, double var6, float var8, float var9) {
		this.renderLivingPig((EntityPig)var1, var2, var4, var6, var8, var9);
	}
}
