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 RenderPig extends RenderLiving
008    {
009        public RenderPig(ModelBase par1ModelBase, ModelBase par2ModelBase, float par3)
010        {
011            super(par1ModelBase, par3);
012            this.setRenderPassModel(par2ModelBase);
013        }
014    
015        protected int renderSaddledPig(EntityPig par1EntityPig, int par2, float par3)
016        {
017            this.loadTexture("/mob/saddle.png");
018            return par2 == 0 && par1EntityPig.getSaddled() ? 1 : -1;
019        }
020    
021        public void func_77098_a(EntityPig par1EntityPig, double par2, double par4, double par6, float par8, float par9)
022        {
023            super.doRenderLiving(par1EntityPig, par2, par4, par6, par8, par9);
024        }
025    
026        /**
027         * Queries whether should render the specified pass or not.
028         */
029        protected int shouldRenderPass(EntityLiving par1EntityLiving, int par2, float par3)
030        {
031            return this.renderSaddledPig((EntityPig)par1EntityLiving, par2, par3);
032        }
033    
034        public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
035        {
036            this.func_77098_a((EntityPig)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.func_77098_a((EntityPig)par1Entity, par2, par4, par6, par8, par9);
048        }
049    }