    001    package net.minecraft.client.renderer.entity;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import net.minecraft.client.model.ModelBase;
    006    import net.minecraft.entity.Entity;
    007    import net.minecraft.entity.EntityLiving;
    008    import net.minecraft.entity.passive.EntityOcelot;
    009    import org.lwjgl.opengl.GL11;
    010
    011    @SideOnly(Side.CLIENT)
    012    public class RenderOcelot extends RenderLiving
    013    {
    014        public RenderOcelot(ModelBase par1ModelBase, float par2)
    015        {
    016            super(par1ModelBase, par2);
    017        }
    018
    019        public void renderLivingOcelot(EntityOcelot par1EntityOcelot, double par2, double par4, double par6, float par8, float par9)
    020        {
    021            super.doRenderLiving(par1EntityOcelot, par2, par4, par6, par8, par9);
    022        }
    023
    024        /**
    025         * Pre-Renders the Ocelot.
    026         */
    027        protected void preRenderOcelot(EntityOcelot par1EntityOcelot, float par2)
    028        {
    029            super.preRenderCallback(par1EntityOcelot, par2);
    030
    031            if (par1EntityOcelot.isTamed())
    032            {
    033                GL11.glScalef(0.8F, 0.8F, 0.8F);
    034            }
    035        }
    036
    037        /**
    038         * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
    039         * entityLiving, partialTickTime
    040         */
    041        protected void preRenderCallback(EntityLiving par1EntityLiving, float par2)
    042        {
    043            this.preRenderOcelot((EntityOcelot)par1EntityLiving, par2);
    044        }
    045
    046        public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
    047        {
    048            this.renderLivingOcelot((EntityOcelot)par1EntityLiving, par2, par4, par6, par8, par9);
    049        }
    050
    051        /**
    052         * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
    053         * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
    054         * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
    055         * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
    056         */
    057        public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
    058        {
    059            this.renderLivingOcelot((EntityOcelot)par1Entity, par2, par4, par6, par8, par9);
    060        }
    061    }