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 RenderSkeleton extends RenderBiped 009 { 010 public RenderSkeleton() 011 { 012 super(new ModelSkeleton(), 0.5F); 013 } 014 015 protected void func_82438_a(EntitySkeleton par1EntitySkeleton, float par2) 016 { 017 if (par1EntitySkeleton.func_82202_m() == 1) 018 { 019 GL11.glScalef(1.2F, 1.2F, 1.2F); 020 } 021 } 022 023 protected void func_82422_c() 024 { 025 GL11.glTranslatef(0.09375F, 0.1875F, 0.0F); 026 } 027 028 /** 029 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: 030 * entityLiving, partialTickTime 031 */ 032 protected void preRenderCallback(EntityLiving par1EntityLiving, float par2) 033 { 034 this.func_82438_a((EntitySkeleton)par1EntityLiving, par2); 035 } 036 }