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 RenderWolf extends RenderLiving 008 { 009 public RenderWolf(ModelBase par1ModelBase, float par2) 010 { 011 super(par1ModelBase, par2); 012 } 013 014 public void renderWolf(EntityWolf par1EntityWolf, double par2, double par4, double par6, float par8, float par9) 015 { 016 super.doRenderLiving(par1EntityWolf, par2, par4, par6, par8, par9); 017 } 018 019 protected float getTailRotation(EntityWolf par1EntityWolf, float par2) 020 { 021 return par1EntityWolf.getTailRotation(); 022 } 023 024 /** 025 * Defines what float the third param in setRotationAngles of ModelBase is 026 */ 027 protected float handleRotationFloat(EntityLiving par1EntityLiving, float par2) 028 { 029 return this.getTailRotation((EntityWolf)par1EntityLiving, par2); 030 } 031 032 public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) 033 { 034 this.renderWolf((EntityWolf)par1EntityLiving, par2, par4, par6, par8, par9); 035 } 036 037 /** 038 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then 039 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic 040 * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1, 041 * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. 042 */ 043 public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) 044 { 045 this.renderWolf((EntityWolf)par1Entity, par2, par4, par6, par8, par9); 046 } 047 }