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