public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelSkeletonHead)) { return null; } else { ModelSkeletonHead modelskeletonhead = (ModelSkeletonHead)model; return modelPart.equals("head") ? modelskeletonhead.skeletonHead : null; } }
public ModelBase makeModel() { return new ModelSkeletonHead(); }
public ModelBase makeModel() { return new ModelSkeletonHead(0, 0, 64, 32); }
public void func_147530_a(float p_147530_1_, float p_147530_2_, float p_147530_3_, int p_147530_4_, float p_147530_5_, int p_147530_6_, String p_147530_7_) { ModelSkeletonHead var8 = this.field_147533_g; switch (p_147530_6_) { case 0: default: this.bindTexture(field_147537_c); break; case 1: this.bindTexture(field_147534_d); break; case 2: this.bindTexture(field_147535_e); var8 = this.field_147538_h; break; case 3: ResourceLocation var9 = AbstractClientPlayer.locationStevePng; if (p_147530_7_ != null && p_147530_7_.length() > 0) { var9 = AbstractClientPlayer.getLocationSkull(p_147530_7_); AbstractClientPlayer.getDownloadImageSkin(var9, p_147530_7_); } this.bindTexture(var9); break; case 4: this.bindTexture(field_147532_f); } GL11.glPushMatrix(); GL11.glDisable(GL11.GL_CULL_FACE); if (p_147530_4_ != 1) { switch (p_147530_4_) { case 2: GL11.glTranslatef(p_147530_1_ + 0.5F, p_147530_2_ + 0.25F, p_147530_3_ + 0.74F); break; case 3: GL11.glTranslatef(p_147530_1_ + 0.5F, p_147530_2_ + 0.25F, p_147530_3_ + 0.26F); p_147530_5_ = 180.0F; break; case 4: GL11.glTranslatef(p_147530_1_ + 0.74F, p_147530_2_ + 0.25F, p_147530_3_ + 0.5F); p_147530_5_ = 270.0F; break; case 5: default: GL11.glTranslatef(p_147530_1_ + 0.26F, p_147530_2_ + 0.25F, p_147530_3_ + 0.5F); p_147530_5_ = 90.0F; } } else { GL11.glTranslatef(p_147530_1_ + 0.5F, p_147530_2_, p_147530_3_ + 0.5F); } float var10 = 0.0625F; GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glScalef(-1.0F, -1.0F, 1.0F); GL11.glEnable(GL11.GL_ALPHA_TEST); var8.render((Entity)null, 0.0F, 0.0F, 0.0F, p_147530_5_, 0.0F, var10); GL11.glPopMatrix(); }
public void func_152674_a(float p_152674_1_, float p_152674_2_, float p_152674_3_, int p_152674_4_, float p_152674_5_, int p_152674_6_, GameProfile p_152674_7_) { ModelSkeletonHead modelskeletonhead = this.field_147533_g; switch (p_152674_6_) { case 0: default: this.bindTexture(field_147537_c); break; case 1: this.bindTexture(field_147534_d); break; case 2: this.bindTexture(field_147535_e); modelskeletonhead = this.field_147538_h; break; case 3: ResourceLocation resourcelocation = AbstractClientPlayer.locationStevePng; if (p_152674_7_ != null) { Minecraft minecraft = Minecraft.getMinecraft(); Map map = minecraft.func_152342_ad().func_152788_a(p_152674_7_); if (map.containsKey(Type.SKIN)) { resourcelocation = minecraft.func_152342_ad().func_152792_a((MinecraftProfileTexture)map.get(Type.SKIN), Type.SKIN); } } this.bindTexture(resourcelocation); break; case 4: this.bindTexture(field_147532_f); } GL11.glPushMatrix(); GL11.glDisable(GL11.GL_CULL_FACE); if (p_152674_4_ != 1) { switch (p_152674_4_) { case 2: GL11.glTranslatef(p_152674_1_ + 0.5F, p_152674_2_ + 0.25F, p_152674_3_ + 0.74F); break; case 3: GL11.glTranslatef(p_152674_1_ + 0.5F, p_152674_2_ + 0.25F, p_152674_3_ + 0.26F); p_152674_5_ = 180.0F; break; case 4: GL11.glTranslatef(p_152674_1_ + 0.74F, p_152674_2_ + 0.25F, p_152674_3_ + 0.5F); p_152674_5_ = 270.0F; break; case 5: default: GL11.glTranslatef(p_152674_1_ + 0.26F, p_152674_2_ + 0.25F, p_152674_3_ + 0.5F); p_152674_5_ = 90.0F; } } else { GL11.glTranslatef(p_152674_1_ + 0.5F, p_152674_2_, p_152674_3_ + 0.5F); } float f4 = 0.0625F; GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glScalef(-1.0F, -1.0F, 1.0F); GL11.glEnable(GL11.GL_ALPHA_TEST); modelskeletonhead.render((Entity)null, 0.0F, 0.0F, 0.0F, p_152674_5_, 0.0F, f4); GL11.glPopMatrix(); }
public void func_82393_a(float p_82393_1_, float p_82393_2_, float p_82393_3_, int p_82393_4_, float p_82393_5_, int p_82393_6_, String p_82393_7_) { ModelSkeletonHead var8 = this.field_82396_c; switch(p_82393_6_) { case 0: default: this.func_110628_a(field_110642_c); break; case 1: this.func_110628_a(field_110640_d); break; case 2: this.func_110628_a(field_110641_e); var8 = this.field_82395_d; break; case 3: ResourceLocation var9 = AbstractClientPlayer.field_110314_b; if(p_82393_7_ != null && p_82393_7_.length() > 0) { var9 = AbstractClientPlayer.func_110305_h(p_82393_7_); AbstractClientPlayer.func_110304_a(var9, p_82393_7_); } this.func_110628_a(var9); break; case 4: this.func_110628_a(field_110639_f); } GL11.glPushMatrix(); GL11.glDisable(2884); if(p_82393_4_ != 1) { switch(p_82393_4_) { case 2: GL11.glTranslatef(p_82393_1_ + 0.5F, p_82393_2_ + 0.25F, p_82393_3_ + 0.74F); break; case 3: GL11.glTranslatef(p_82393_1_ + 0.5F, p_82393_2_ + 0.25F, p_82393_3_ + 0.26F); p_82393_5_ = 180.0F; break; case 4: GL11.glTranslatef(p_82393_1_ + 0.74F, p_82393_2_ + 0.25F, p_82393_3_ + 0.5F); p_82393_5_ = 270.0F; break; case 5: default: GL11.glTranslatef(p_82393_1_ + 0.26F, p_82393_2_ + 0.25F, p_82393_3_ + 0.5F); p_82393_5_ = 90.0F; } } else { GL11.glTranslatef(p_82393_1_ + 0.5F, p_82393_2_, p_82393_3_ + 0.5F); } float var10 = 0.0625F; GL11.glEnable('\u803a'); GL11.glScalef(-1.0F, -1.0F, 1.0F); GL11.glEnable(3008); var8.func_78088_a((Entity)null, 0.0F, 0.0F, 0.0F, p_82393_5_, 0.0F, var10); GL11.glPopMatrix(); }
public void func_82393_a(float par1, float par2, float par3, int par4, float par5, int par6, String par7Str) { ModelSkeletonHead modelskeletonhead = this.field_82396_c; switch (par6) { case 0: default: this.bindTexture(field_110642_c); break; case 1: this.bindTexture(field_110640_d); break; case 2: this.bindTexture(field_110641_e); modelskeletonhead = this.field_82395_d; break; case 3: ResourceLocation resourcelocation = AbstractClientPlayer.locationStevePng; if (par7Str != null && par7Str.length() > 0) { resourcelocation = AbstractClientPlayer.getLocationSkull(par7Str); AbstractClientPlayer.getDownloadImageSkin(resourcelocation, par7Str); } this.bindTexture(resourcelocation); break; case 4: this.bindTexture(field_110639_f); } GL11.glPushMatrix(); GL11.glDisable(GL11.GL_CULL_FACE); if (par4 != 1) { switch (par4) { case 2: GL11.glTranslatef(par1 + 0.5F, par2 + 0.25F, par3 + 0.74F); break; case 3: GL11.glTranslatef(par1 + 0.5F, par2 + 0.25F, par3 + 0.26F); par5 = 180.0F; break; case 4: GL11.glTranslatef(par1 + 0.74F, par2 + 0.25F, par3 + 0.5F); par5 = 270.0F; break; case 5: default: GL11.glTranslatef(par1 + 0.26F, par2 + 0.25F, par3 + 0.5F); par5 = 90.0F; } } else { GL11.glTranslatef(par1 + 0.5F, par2, par3 + 0.5F); } float f4 = 0.0625F; GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glScalef(-1.0F, -1.0F, 1.0F); GL11.glEnable(GL11.GL_ALPHA_TEST); modelskeletonhead.render((Entity)null, 0.0F, 0.0F, 0.0F, par5, 0.0F, f4); GL11.glPopMatrix(); }