001package net.minecraft.client.renderer.entity; 002 003import cpw.mods.fml.relauncher.Side; 004import cpw.mods.fml.relauncher.SideOnly; 005import net.minecraft.block.Block; 006import net.minecraft.client.entity.EntityPlayerSP; 007import net.minecraft.client.model.ModelBiped; 008import net.minecraft.client.renderer.RenderBlocks; 009import net.minecraft.client.renderer.tileentity.TileEntitySkullRenderer; 010import net.minecraft.entity.Entity; 011import net.minecraft.entity.EntityLiving; 012import net.minecraft.entity.player.EntityPlayer; 013import net.minecraft.item.EnumAction; 014import net.minecraft.item.EnumArmorMaterial; 015import net.minecraft.item.Item; 016import net.minecraft.item.ItemArmor; 017import net.minecraft.item.ItemStack; 018import net.minecraft.scoreboard.Score; 019import net.minecraft.scoreboard.ScoreObjective; 020import net.minecraft.scoreboard.Scoreboard; 021import net.minecraft.util.MathHelper; 022import net.minecraftforge.client.ForgeHooksClient; 023import net.minecraftforge.client.IItemRenderer; 024import net.minecraftforge.client.MinecraftForgeClient; 025import org.lwjgl.opengl.GL11; 026import net.minecraft.item.ItemBlock; 027import static net.minecraftforge.client.IItemRenderer.ItemRenderType.EQUIPPED; 028import static net.minecraftforge.client.IItemRenderer.ItemRendererHelper.BLOCK_3D; 029 030@SideOnly(Side.CLIENT) 031public class RenderPlayer extends RenderLiving 032{ 033 private ModelBiped modelBipedMain; 034 private ModelBiped modelArmorChestplate; 035 private ModelBiped modelArmor; 036 public static String[] armorFilenamePrefix = new String[] {"cloth", "chain", "iron", "diamond", "gold"}; 037 public static float NAME_TAG_RANGE = 64.0f; 038 public static float NAME_TAG_RANGE_SNEAK = 32.0f; 039 040 public RenderPlayer() 041 { 042 super(new ModelBiped(0.0F), 0.5F); 043 this.modelBipedMain = (ModelBiped)this.mainModel; 044 this.modelArmorChestplate = new ModelBiped(1.0F); 045 this.modelArmor = new ModelBiped(0.5F); 046 } 047 048 protected void func_98191_a(EntityPlayer par1EntityPlayer) 049 { 050 this.loadDownloadableImageTexture(par1EntityPlayer.skinUrl, par1EntityPlayer.getTexture()); 051 } 052 053 /** 054 * Set the specified armor model as the player model. Args: player, armorSlot, partialTick 055 */ 056 protected int setArmorModel(EntityPlayer par1EntityPlayer, int par2, float par3) 057 { 058 ItemStack itemstack = par1EntityPlayer.inventory.armorItemInSlot(3 - par2); 059 060 if (itemstack != null) 061 { 062 Item item = itemstack.getItem(); 063 064 if (item instanceof ItemArmor) 065 { 066 ItemArmor itemarmor = (ItemArmor)item; 067 this.loadTexture(ForgeHooksClient.getArmorTexture(itemstack, "/armor/" + armorFilenamePrefix[itemarmor.renderIndex] + "_" + (par2 == 2 ? 2 : 1) + ".png")); 068 ModelBiped modelbiped = par2 == 2 ? this.modelArmor : this.modelArmorChestplate; 069 modelbiped.bipedHead.showModel = par2 == 0; 070 modelbiped.bipedHeadwear.showModel = par2 == 0; 071 modelbiped.bipedBody.showModel = par2 == 1 || par2 == 2; 072 modelbiped.bipedRightArm.showModel = par2 == 1; 073 modelbiped.bipedLeftArm.showModel = par2 == 1; 074 modelbiped.bipedRightLeg.showModel = par2 == 2 || par2 == 3; 075 modelbiped.bipedLeftLeg.showModel = par2 == 2 || par2 == 3; 076 this.setRenderPassModel(modelbiped); 077 078 if (modelbiped != null) 079 { 080 modelbiped.onGround = this.mainModel.onGround; 081 } 082 083 if (modelbiped != null) 084 { 085 modelbiped.isRiding = this.mainModel.isRiding; 086 } 087 088 if (modelbiped != null) 089 { 090 modelbiped.isChild = this.mainModel.isChild; 091 } 092 093 float f1 = 1.0F; 094 095 if (itemarmor.getArmorMaterial() == EnumArmorMaterial.CLOTH) 096 { 097 int j = itemarmor.getColor(itemstack); 098 float f2 = (float)(j >> 16 & 255) / 255.0F; 099 float f3 = (float)(j >> 8 & 255) / 255.0F; 100 float f4 = (float)(j & 255) / 255.0F; 101 GL11.glColor3f(f1 * f2, f1 * f3, f1 * f4); 102 103 if (itemstack.isItemEnchanted()) 104 { 105 return 31; 106 } 107 108 return 16; 109 } 110 111 GL11.glColor3f(f1, f1, f1); 112 113 if (itemstack.isItemEnchanted()) 114 { 115 return 15; 116 } 117 118 return 1; 119 } 120 } 121 122 return -1; 123 } 124 125 protected void func_82439_b(EntityPlayer par1EntityPlayer, int par2, float par3) 126 { 127 ItemStack itemstack = par1EntityPlayer.inventory.armorItemInSlot(3 - par2); 128 129 if (itemstack != null) 130 { 131 Item item = itemstack.getItem(); 132 133 if (item instanceof ItemArmor) 134 { 135 ItemArmor itemarmor = (ItemArmor)item; 136 this.loadTexture(ForgeHooksClient.getArmorTexture(itemstack, "/armor/" + armorFilenamePrefix[itemarmor.renderIndex] + "_" + (par2 == 2 ? 2 : 1) + "_b.png")); 137 float f1 = 1.0F; 138 GL11.glColor3f(f1, f1, f1); 139 } 140 } 141 } 142 143 public void renderPlayer(EntityPlayer par1EntityPlayer, double par2, double par4, double par6, float par8, float par9) 144 { 145 float f2 = 1.0F; 146 GL11.glColor3f(f2, f2, f2); 147 ItemStack itemstack = par1EntityPlayer.inventory.getCurrentItem(); 148 this.modelArmorChestplate.heldItemRight = this.modelArmor.heldItemRight = this.modelBipedMain.heldItemRight = itemstack != null ? 1 : 0; 149 150 if (itemstack != null && par1EntityPlayer.getItemInUseCount() > 0) 151 { 152 EnumAction enumaction = itemstack.getItemUseAction(); 153 154 if (enumaction == EnumAction.block) 155 { 156 this.modelArmorChestplate.heldItemRight = this.modelArmor.heldItemRight = this.modelBipedMain.heldItemRight = 3; 157 } 158 else if (enumaction == EnumAction.bow) 159 { 160 this.modelArmorChestplate.aimedBow = this.modelArmor.aimedBow = this.modelBipedMain.aimedBow = true; 161 } 162 } 163 164 this.modelArmorChestplate.isSneak = this.modelArmor.isSneak = this.modelBipedMain.isSneak = par1EntityPlayer.isSneaking(); 165 double d3 = par4 - (double)par1EntityPlayer.yOffset; 166 167 if (par1EntityPlayer.isSneaking() && !(par1EntityPlayer instanceof EntityPlayerSP)) 168 { 169 d3 -= 0.125D; 170 } 171 172 super.doRenderLiving(par1EntityPlayer, par2, d3, par6, par8, par9); 173 this.modelArmorChestplate.aimedBow = this.modelArmor.aimedBow = this.modelBipedMain.aimedBow = false; 174 this.modelArmorChestplate.isSneak = this.modelArmor.isSneak = this.modelBipedMain.isSneak = false; 175 this.modelArmorChestplate.heldItemRight = this.modelArmor.heldItemRight = this.modelBipedMain.heldItemRight = 0; 176 } 177 178 /** 179 * Method for adding special render rules 180 */ 181 protected void renderSpecials(EntityPlayer par1EntityPlayer, float par2) 182 { 183 float f1 = 1.0F; 184 GL11.glColor3f(f1, f1, f1); 185 super.renderEquippedItems(par1EntityPlayer, par2); 186 super.renderArrowsStuckInEntity(par1EntityPlayer, par2); 187 ItemStack itemstack = par1EntityPlayer.inventory.armorItemInSlot(3); 188 189 if (itemstack != null) 190 { 191 GL11.glPushMatrix(); 192 this.modelBipedMain.bipedHead.postRender(0.0625F); 193 float f2; 194 195 if (itemstack != null && itemstack.getItem() instanceof ItemBlock) 196 { 197 IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack, EQUIPPED); 198 boolean is3D = (customRenderer != null && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack, BLOCK_3D)); 199 200 if (is3D || RenderBlocks.renderItemIn3d(Block.blocksList[itemstack.itemID].getRenderType())) 201 { 202 f2 = 0.625F; 203 GL11.glTranslatef(0.0F, -0.25F, 0.0F); 204 GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F); 205 GL11.glScalef(f2, -f2, -f2); 206 } 207 208 this.renderManager.itemRenderer.renderItem(par1EntityPlayer, itemstack, 0); 209 } 210 else if (itemstack.getItem().itemID == Item.skull.itemID) 211 { 212 f2 = 1.0625F; 213 GL11.glScalef(f2, -f2, -f2); 214 String s = ""; 215 216 if (itemstack.hasTagCompound() && itemstack.getTagCompound().hasKey("SkullOwner")) 217 { 218 s = itemstack.getTagCompound().getString("SkullOwner"); 219 } 220 221 TileEntitySkullRenderer.skullRenderer.func_82393_a(-0.5F, 0.0F, -0.5F, 1, 180.0F, itemstack.getItemDamage(), s); 222 } 223 224 GL11.glPopMatrix(); 225 } 226 227 float f3; 228 float f4; 229 230 if (par1EntityPlayer.username.equals("deadmau5") && this.loadDownloadableImageTexture(par1EntityPlayer.skinUrl, (String)null)) 231 { 232 for (int i = 0; i < 2; ++i) 233 { 234 float f5 = par1EntityPlayer.prevRotationYaw + (par1EntityPlayer.rotationYaw - par1EntityPlayer.prevRotationYaw) * par2 - (par1EntityPlayer.prevRenderYawOffset + (par1EntityPlayer.renderYawOffset - par1EntityPlayer.prevRenderYawOffset) * par2); 235 f3 = par1EntityPlayer.prevRotationPitch + (par1EntityPlayer.rotationPitch - par1EntityPlayer.prevRotationPitch) * par2; 236 GL11.glPushMatrix(); 237 GL11.glRotatef(f5, 0.0F, 1.0F, 0.0F); 238 GL11.glRotatef(f3, 1.0F, 0.0F, 0.0F); 239 GL11.glTranslatef(0.375F * (float)(i * 2 - 1), 0.0F, 0.0F); 240 GL11.glTranslatef(0.0F, -0.375F, 0.0F); 241 GL11.glRotatef(-f3, 1.0F, 0.0F, 0.0F); 242 GL11.glRotatef(-f5, 0.0F, 1.0F, 0.0F); 243 f4 = 1.3333334F; 244 GL11.glScalef(f4, f4, f4); 245 this.modelBipedMain.renderEars(0.0625F); 246 GL11.glPopMatrix(); 247 } 248 } 249 250 float f6; 251 252 if (this.loadDownloadableImageTexture(par1EntityPlayer.cloakUrl, (String)null) && !par1EntityPlayer.getHasActivePotion() && !par1EntityPlayer.getHideCape()) 253 { 254 GL11.glPushMatrix(); 255 GL11.glTranslatef(0.0F, 0.0F, 0.125F); 256 double d0 = par1EntityPlayer.field_71091_bM + (par1EntityPlayer.field_71094_bP - par1EntityPlayer.field_71091_bM) * (double)par2 - (par1EntityPlayer.prevPosX + (par1EntityPlayer.posX - par1EntityPlayer.prevPosX) * (double)par2); 257 double d1 = par1EntityPlayer.field_71096_bN + (par1EntityPlayer.field_71095_bQ - par1EntityPlayer.field_71096_bN) * (double)par2 - (par1EntityPlayer.prevPosY + (par1EntityPlayer.posY - par1EntityPlayer.prevPosY) * (double)par2); 258 double d2 = par1EntityPlayer.field_71097_bO + (par1EntityPlayer.field_71085_bR - par1EntityPlayer.field_71097_bO) * (double)par2 - (par1EntityPlayer.prevPosZ + (par1EntityPlayer.posZ - par1EntityPlayer.prevPosZ) * (double)par2); 259 f6 = par1EntityPlayer.prevRenderYawOffset + (par1EntityPlayer.renderYawOffset - par1EntityPlayer.prevRenderYawOffset) * par2; 260 double d3 = (double)MathHelper.sin(f6 * (float)Math.PI / 180.0F); 261 double d4 = (double)(-MathHelper.cos(f6 * (float)Math.PI / 180.0F)); 262 float f7 = (float)d1 * 10.0F; 263 264 if (f7 < -6.0F) 265 { 266 f7 = -6.0F; 267 } 268 269 if (f7 > 32.0F) 270 { 271 f7 = 32.0F; 272 } 273 274 float f8 = (float)(d0 * d3 + d2 * d4) * 100.0F; 275 float f9 = (float)(d0 * d4 - d2 * d3) * 100.0F; 276 277 if (f8 < 0.0F) 278 { 279 f8 = 0.0F; 280 } 281 282 float f10 = par1EntityPlayer.prevCameraYaw + (par1EntityPlayer.cameraYaw - par1EntityPlayer.prevCameraYaw) * par2; 283 f7 += MathHelper.sin((par1EntityPlayer.prevDistanceWalkedModified + (par1EntityPlayer.distanceWalkedModified - par1EntityPlayer.prevDistanceWalkedModified) * par2) * 6.0F) * 32.0F * f10; 284 285 if (par1EntityPlayer.isSneaking()) 286 { 287 f7 += 25.0F; 288 } 289 290 GL11.glRotatef(6.0F + f8 / 2.0F + f7, 1.0F, 0.0F, 0.0F); 291 GL11.glRotatef(f9 / 2.0F, 0.0F, 0.0F, 1.0F); 292 GL11.glRotatef(-f9 / 2.0F, 0.0F, 1.0F, 0.0F); 293 GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F); 294 this.modelBipedMain.renderCloak(0.0625F); 295 GL11.glPopMatrix(); 296 } 297 298 ItemStack itemstack1 = par1EntityPlayer.inventory.getCurrentItem(); 299 300 if (itemstack1 != null) 301 { 302 GL11.glPushMatrix(); 303 this.modelBipedMain.bipedRightArm.postRender(0.0625F); 304 GL11.glTranslatef(-0.0625F, 0.4375F, 0.0625F); 305 306 if (par1EntityPlayer.fishEntity != null) 307 { 308 itemstack1 = new ItemStack(Item.stick); 309 } 310 311 EnumAction enumaction = null; 312 313 if (par1EntityPlayer.getItemInUseCount() > 0) 314 { 315 enumaction = itemstack1.getItemUseAction(); 316 } 317 318 IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack1, EQUIPPED); 319 boolean is3D = (customRenderer != null && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack1, BLOCK_3D)); 320 321 if (itemstack1.getItem() instanceof ItemBlock && (is3D || RenderBlocks.renderItemIn3d(Block.blocksList[itemstack1.itemID].getRenderType()))) 322 { 323 f3 = 0.5F; 324 GL11.glTranslatef(0.0F, 0.1875F, -0.3125F); 325 f3 *= 0.75F; 326 GL11.glRotatef(20.0F, 1.0F, 0.0F, 0.0F); 327 GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F); 328 GL11.glScalef(-f3, -f3, f3); 329 } 330 else if (itemstack1.itemID == Item.bow.itemID) 331 { 332 f3 = 0.625F; 333 GL11.glTranslatef(0.0F, 0.125F, 0.3125F); 334 GL11.glRotatef(-20.0F, 0.0F, 1.0F, 0.0F); 335 GL11.glScalef(f3, -f3, f3); 336 GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F); 337 GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F); 338 } 339 else if (Item.itemsList[itemstack1.itemID].isFull3D()) 340 { 341 f3 = 0.625F; 342 343 if (Item.itemsList[itemstack1.itemID].shouldRotateAroundWhenRendering()) 344 { 345 GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F); 346 GL11.glTranslatef(0.0F, -0.125F, 0.0F); 347 } 348 349 if (par1EntityPlayer.getItemInUseCount() > 0 && enumaction == EnumAction.block) 350 { 351 GL11.glTranslatef(0.05F, 0.0F, -0.1F); 352 GL11.glRotatef(-50.0F, 0.0F, 1.0F, 0.0F); 353 GL11.glRotatef(-10.0F, 1.0F, 0.0F, 0.0F); 354 GL11.glRotatef(-60.0F, 0.0F, 0.0F, 1.0F); 355 } 356 357 GL11.glTranslatef(0.0F, 0.1875F, 0.0F); 358 GL11.glScalef(f3, -f3, f3); 359 GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F); 360 GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F); 361 } 362 else 363 { 364 f3 = 0.375F; 365 GL11.glTranslatef(0.25F, 0.1875F, -0.1875F); 366 GL11.glScalef(f3, f3, f3); 367 GL11.glRotatef(60.0F, 0.0F, 0.0F, 1.0F); 368 GL11.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F); 369 GL11.glRotatef(20.0F, 0.0F, 0.0F, 1.0F); 370 } 371 372 float f11; 373 int j; 374 float f12; 375 376 if (itemstack1.getItem().requiresMultipleRenderPasses()) 377 { 378 for (j = 0; j < itemstack1.getItem().getRenderPasses(itemstack1.getItemDamage()); ++j) 379 { 380 int k = itemstack1.getItem().getColorFromItemStack(itemstack1, j); 381 f12 = (float)(k >> 16 & 255) / 255.0F; 382 f11 = (float)(k >> 8 & 255) / 255.0F; 383 f6 = (float)(k & 255) / 255.0F; 384 GL11.glColor4f(f12, f11, f6, 1.0F); 385 this.renderManager.itemRenderer.renderItem(par1EntityPlayer, itemstack1, j); 386 } 387 } 388 else 389 { 390 j = itemstack1.getItem().getColorFromItemStack(itemstack1, 0); 391 f4 = (float)(j >> 16 & 255) / 255.0F; 392 f12 = (float)(j >> 8 & 255) / 255.0F; 393 f11 = (float)(j & 255) / 255.0F; 394 GL11.glColor4f(f4, f12, f11, 1.0F); 395 this.renderManager.itemRenderer.renderItem(par1EntityPlayer, itemstack1, 0); 396 } 397 398 GL11.glPopMatrix(); 399 } 400 } 401 402 protected void renderPlayerScale(EntityPlayer par1EntityPlayer, float par2) 403 { 404 float f1 = 0.9375F; 405 GL11.glScalef(f1, f1, f1); 406 } 407 408 protected void func_96450_a(EntityPlayer par1EntityPlayer, double par2, double par4, double par6, String par8Str, float par9, double par10) 409 { 410 if (par10 < 100.0D) 411 { 412 Scoreboard scoreboard = par1EntityPlayer.func_96123_co(); 413 ScoreObjective scoreobjective = scoreboard.func_96539_a(2); 414 415 if (scoreobjective != null) 416 { 417 Score score = scoreboard.func_96529_a(par1EntityPlayer.getEntityName(), scoreobjective); 418 419 if (par1EntityPlayer.isPlayerSleeping()) 420 { 421 this.renderLivingLabel(par1EntityPlayer, score.func_96652_c() + " " + scoreobjective.func_96678_d(), par2, par4 - 1.5D, par6, 64); 422 } 423 else 424 { 425 this.renderLivingLabel(par1EntityPlayer, score.func_96652_c() + " " + scoreobjective.func_96678_d(), par2, par4, par6, 64); 426 } 427 428 par4 += (double)((float)this.getFontRendererFromRenderManager().FONT_HEIGHT * 1.15F * par9); 429 } 430 } 431 432 super.func_96449_a(par1EntityPlayer, par2, par4, par6, par8Str, par9, par10); 433 } 434 435 public void renderFirstPersonArm(EntityPlayer par1EntityPlayer) 436 { 437 float f = 1.0F; 438 GL11.glColor3f(f, f, f); 439 this.modelBipedMain.onGround = 0.0F; 440 this.modelBipedMain.setRotationAngles(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, par1EntityPlayer); 441 this.modelBipedMain.bipedRightArm.render(0.0625F); 442 } 443 444 /** 445 * Renders player with sleeping offset if sleeping 446 */ 447 protected void renderPlayerSleep(EntityPlayer par1EntityPlayer, double par2, double par4, double par6) 448 { 449 if (par1EntityPlayer.isEntityAlive() && par1EntityPlayer.isPlayerSleeping()) 450 { 451 super.renderLivingAt(par1EntityPlayer, par2 + (double)par1EntityPlayer.field_71079_bU, par4 + (double)par1EntityPlayer.field_71082_cx, par6 + (double)par1EntityPlayer.field_71089_bV); 452 } 453 else 454 { 455 super.renderLivingAt(par1EntityPlayer, par2, par4, par6); 456 } 457 } 458 459 /** 460 * Rotates the player if the player is sleeping. This method is called in rotateCorpse. 461 */ 462 protected void rotatePlayer(EntityPlayer par1EntityPlayer, float par2, float par3, float par4) 463 { 464 if (par1EntityPlayer.isEntityAlive() && par1EntityPlayer.isPlayerSleeping()) 465 { 466 GL11.glRotatef(par1EntityPlayer.getBedOrientationInDegrees(), 0.0F, 1.0F, 0.0F); 467 GL11.glRotatef(this.getDeathMaxRotation(par1EntityPlayer), 0.0F, 0.0F, 1.0F); 468 GL11.glRotatef(270.0F, 0.0F, 1.0F, 0.0F); 469 } 470 else 471 { 472 super.rotateCorpse(par1EntityPlayer, par2, par3, par4); 473 } 474 } 475 476 protected void func_96449_a(EntityLiving par1EntityLiving, double par2, double par4, double par6, String par8Str, float par9, double par10) 477 { 478 this.func_96450_a((EntityPlayer)par1EntityLiving, par2, par4, par6, par8Str, par9, par10); 479 } 480 481 /** 482 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: 483 * entityLiving, partialTickTime 484 */ 485 protected void preRenderCallback(EntityLiving par1EntityLiving, float par2) 486 { 487 this.renderPlayerScale((EntityPlayer)par1EntityLiving, par2); 488 } 489 490 protected void func_82408_c(EntityLiving par1EntityLiving, int par2, float par3) 491 { 492 this.func_82439_b((EntityPlayer)par1EntityLiving, par2, par3); 493 } 494 495 /** 496 * Queries whether should render the specified pass or not. 497 */ 498 protected int shouldRenderPass(EntityLiving par1EntityLiving, int par2, float par3) 499 { 500 return this.setArmorModel((EntityPlayer)par1EntityLiving, par2, par3); 501 } 502 503 protected void renderEquippedItems(EntityLiving par1EntityLiving, float par2) 504 { 505 this.renderSpecials((EntityPlayer)par1EntityLiving, par2); 506 } 507 508 protected void rotateCorpse(EntityLiving par1EntityLiving, float par2, float par3, float par4) 509 { 510 this.rotatePlayer((EntityPlayer)par1EntityLiving, par2, par3, par4); 511 } 512 513 /** 514 * Sets a simple glTranslate on a LivingEntity. 515 */ 516 protected void renderLivingAt(EntityLiving par1EntityLiving, double par2, double par4, double par6) 517 { 518 this.renderPlayerSleep((EntityPlayer)par1EntityLiving, par2, par4, par6); 519 } 520 521 protected void func_98190_a(EntityLiving par1EntityLiving) 522 { 523 this.func_98191_a((EntityPlayer)par1EntityLiving); 524 } 525 526 public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) 527 { 528 this.renderPlayer((EntityPlayer)par1EntityLiving, par2, par4, par6, par8, par9); 529 } 530 531 /** 532 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then 533 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic 534 * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1, 535 * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. 536 */ 537 public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) 538 { 539 this.renderPlayer((EntityPlayer)par1Entity, par2, par4, par6, par8, par9); 540 } 541}