public void func_72518_a(Packet20NamedEntitySpawn p_72518_1_) { double var2 = (double)p_72518_1_.field_73515_c / 32.0D; double var4 = (double)p_72518_1_.field_73512_d / 32.0D; double var6 = (double)p_72518_1_.field_73513_e / 32.0D; float var8 = (float)(p_72518_1_.field_73510_f * 360) / 256.0F; float var9 = (float)(p_72518_1_.field_73511_g * 360) / 256.0F; EntityOtherPlayerMP var10 = new EntityOtherPlayerMP(this.field_72563_h.field_71441_e, p_72518_1_.field_73514_b); var10.field_70169_q = var10.field_70142_S = (double)(var10.field_70118_ct = p_72518_1_.field_73515_c); var10.field_70167_r = var10.field_70137_T = (double)(var10.field_70117_cu = p_72518_1_.field_73512_d); var10.field_70166_s = var10.field_70136_U = (double)(var10.field_70116_cv = p_72518_1_.field_73513_e); int var11 = p_72518_1_.field_73518_h; if(var11 == 0) { var10.field_71071_by.field_70462_a[var10.field_71071_by.field_70461_c] = null; } else { var10.field_71071_by.field_70462_a[var10.field_71071_by.field_70461_c] = new ItemStack(var11, 1, 0); } var10.func_70080_a(var2, var4, var6, var8, var9); this.field_72564_i.func_73027_a(p_72518_1_.field_73516_a, var10); List var12 = p_72518_1_.func_73509_c(); if(var12 != null) { var10.func_70096_w().func_75687_a(var12); } }
public void handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn) { double d0 = (double)par1Packet20NamedEntitySpawn.xPosition / 32.0D; double d1 = (double)par1Packet20NamedEntitySpawn.yPosition / 32.0D; double d2 = (double)par1Packet20NamedEntitySpawn.zPosition / 32.0D; float f = (float)(par1Packet20NamedEntitySpawn.rotation * 360) / 256.0F; float f1 = (float)(par1Packet20NamedEntitySpawn.pitch * 360) / 256.0F; EntityOtherPlayerMP entityotherplayermp = new EntityOtherPlayerMP(this.mc.theWorld, par1Packet20NamedEntitySpawn.name); entityotherplayermp.prevPosX = entityotherplayermp.lastTickPosX = (double)(entityotherplayermp.serverPosX = par1Packet20NamedEntitySpawn.xPosition); entityotherplayermp.prevPosY = entityotherplayermp.lastTickPosY = (double)(entityotherplayermp.serverPosY = par1Packet20NamedEntitySpawn.yPosition); entityotherplayermp.prevPosZ = entityotherplayermp.lastTickPosZ = (double)(entityotherplayermp.serverPosZ = par1Packet20NamedEntitySpawn.zPosition); int i = par1Packet20NamedEntitySpawn.currentItem; if (i == 0) { entityotherplayermp.inventory.mainInventory[entityotherplayermp.inventory.currentItem] = null; } else { entityotherplayermp.inventory.mainInventory[entityotherplayermp.inventory.currentItem] = new ItemStack(i, 1, 0); } entityotherplayermp.setPositionAndRotation(d0, d1, d2, f, f1); this.worldClient.addEntityToWorld(par1Packet20NamedEntitySpawn.entityId, entityotherplayermp); List list = par1Packet20NamedEntitySpawn.getWatchedMetadata(); if (list != null) { entityotherplayermp.getDataWatcher().updateWatchedObjectsFromList(list); } }
@Override public void handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn) { nch.handleNamedEntitySpawn(par1Packet20NamedEntitySpawn); }
public void func_72518_a(Packet20NamedEntitySpawn p_72518_1_) { this.func_72509_a(p_72518_1_); }