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