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 func_77117_a(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 protected void func_77116_a(EntityOcelot par1EntityOcelot, float par2) 021 { 022 super.preRenderCallback(par1EntityOcelot, par2); 023 024 if (par1EntityOcelot.isTamed()) 025 { 026 GL11.glScalef(0.8F, 0.8F, 0.8F); 027 } 028 } 029 030 /** 031 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: 032 * entityLiving, partialTickTime 033 */ 034 protected void preRenderCallback(EntityLiving par1EntityLiving, float par2) 035 { 036 this.func_77116_a((EntityOcelot)par1EntityLiving, par2); 037 } 038 039 public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) 040 { 041 this.func_77117_a((EntityOcelot)par1EntityLiving, par2, par4, par6, par8, par9); 042 } 043 044 /** 045 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then 046 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic 047 * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1, 048 * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. 049 */ 050 public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) 051 { 052 this.func_77117_a((EntityOcelot)par1Entity, par2, par4, par6, par8, par9); 053 } 054 }