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