public void func_72377_c(EntityPlayerMP p_72377_1_) {
   func_72384_a(new Packet201PlayerInfo(p_72377_1_.field_71092_bJ, true, 1000));
   field_72404_b.add(p_72377_1_);
   WorldServer worldserver;
   for (worldserver = field_72400_f.func_71218_a(p_72377_1_.field_71093_bK);
       !worldserver.func_72945_a(p_72377_1_, p_72377_1_.field_70121_D).isEmpty();
       p_72377_1_.func_70107_b(
           p_72377_1_.field_70165_t, p_72377_1_.field_70163_u + 1.0D, p_72377_1_.field_70161_v)) {}
   worldserver.func_72838_d(p_72377_1_);
   func_72375_a(p_72377_1_, null);
   EntityPlayerMP entityplayermp;
   for (Iterator iterator = field_72404_b.iterator();
       iterator.hasNext();
       p_72377_1_.field_71135_a.func_72567_b(
           new Packet201PlayerInfo(
               entityplayermp.field_71092_bJ, true, entityplayermp.field_71138_i))) {
     entityplayermp = (EntityPlayerMP) iterator.next();
   }
 }
 public void func_72356_a(EntityPlayerMP p_72356_1_, int p_72356_2_) {
   int i = p_72356_1_.field_71093_bK;
   WorldServer worldserver = field_72400_f.func_71218_a(p_72356_1_.field_71093_bK);
   p_72356_1_.field_71093_bK = p_72356_2_;
   WorldServer worldserver1 = field_72400_f.func_71218_a(p_72356_1_.field_71093_bK);
   p_72356_1_.field_71135_a.func_72567_b(
       new Packet9Respawn(
           p_72356_1_.field_71093_bK,
           (byte) p_72356_1_.field_70170_p.field_73013_u,
           worldserver1.func_72912_H().func_76067_t(),
           worldserver1.func_72800_K(),
           p_72356_1_.field_71134_c.func_73081_b()));
   worldserver.func_72973_f(p_72356_1_);
   p_72356_1_.field_70128_L = false;
   double d = p_72356_1_.field_70165_t;
   double d1 = p_72356_1_.field_70161_v;
   double d2 = 8D;
   if (p_72356_1_.field_71093_bK == -1) {
     d /= d2;
     d1 /= d2;
     p_72356_1_.func_70012_b(
         d, p_72356_1_.field_70163_u, d1, p_72356_1_.field_70177_z, p_72356_1_.field_70125_A);
     if (p_72356_1_.func_70089_S()) {
       worldserver.func_72866_a(p_72356_1_, false);
     }
   } else if (p_72356_1_.field_71093_bK == 0) {
     d *= d2;
     d1 *= d2;
     p_72356_1_.func_70012_b(
         d, p_72356_1_.field_70163_u, d1, p_72356_1_.field_70177_z, p_72356_1_.field_70125_A);
     if (p_72356_1_.func_70089_S()) {
       worldserver.func_72866_a(p_72356_1_, false);
     }
   } else {
     ChunkCoordinates chunkcoordinates = worldserver1.func_73054_j();
     d = chunkcoordinates.field_71574_a;
     p_72356_1_.field_70163_u = chunkcoordinates.field_71572_b;
     d1 = chunkcoordinates.field_71573_c;
     p_72356_1_.func_70012_b(d, p_72356_1_.field_70163_u, d1, 90F, 0.0F);
     if (p_72356_1_.func_70089_S()) {
       worldserver.func_72866_a(p_72356_1_, false);
     }
   }
   if (i != 1) {
     d = MathHelper.func_76125_a((int) d, 0xfe363d00, 0x1c9c300);
     d1 = MathHelper.func_76125_a((int) d1, 0xfe363d00, 0x1c9c300);
     if (p_72356_1_.func_70089_S()) {
       worldserver1.func_72838_d(p_72356_1_);
       p_72356_1_.func_70012_b(
           d, p_72356_1_.field_70163_u, d1, p_72356_1_.field_70177_z, p_72356_1_.field_70125_A);
       worldserver1.func_72866_a(p_72356_1_, false);
       (new Teleporter()).func_77185_a(worldserver1, p_72356_1_);
     }
   }
   p_72356_1_.func_70029_a(worldserver1);
   func_72375_a(p_72356_1_, worldserver);
   p_72356_1_.field_71135_a.func_72569_a(
       p_72356_1_.field_70165_t,
       p_72356_1_.field_70163_u,
       p_72356_1_.field_70161_v,
       p_72356_1_.field_70177_z,
       p_72356_1_.field_70125_A);
   p_72356_1_.field_71134_c.func_73080_a(worldserver1);
   func_72354_b(p_72356_1_, worldserver1);
   func_72385_f(p_72356_1_);
   PotionEffect potioneffect;
   for (Iterator iterator = p_72356_1_.func_70651_bq().iterator();
       iterator.hasNext();
       p_72356_1_.field_71135_a.func_72567_b(
           new Packet41EntityEffect(p_72356_1_.field_70157_k, potioneffect))) {
     potioneffect = (PotionEffect) iterator.next();
   }
 }
 public EntityPlayerMP func_72368_a(
     EntityPlayerMP p_72368_1_, int p_72368_2_, boolean p_72368_3_) {
   p_72368_1_.func_71121_q().func_73039_n().func_72787_a(p_72368_1_);
   p_72368_1_.func_71121_q().func_73039_n().func_72790_b(p_72368_1_);
   p_72368_1_.func_71121_q().func_73040_p().func_72695_c(p_72368_1_);
   field_72404_b.remove(p_72368_1_);
   field_72400_f.func_71218_a(p_72368_1_.field_71093_bK).func_72973_f(p_72368_1_);
   ChunkCoordinates chunkcoordinates = p_72368_1_.func_70997_bJ();
   p_72368_1_.field_71093_bK = p_72368_2_;
   Object obj;
   if (field_72400_f.func_71242_L()) {
     obj = new DemoWorldManager(field_72400_f.func_71218_a(p_72368_1_.field_71093_bK));
   } else {
     obj = new ItemInWorldManager(field_72400_f.func_71218_a(p_72368_1_.field_71093_bK));
   }
   EntityPlayerMP entityplayermp =
       new EntityPlayerMP(
           field_72400_f,
           field_72400_f.func_71218_a(p_72368_1_.field_71093_bK),
           p_72368_1_.field_71092_bJ,
           ((ItemInWorldManager) (obj)));
   entityplayermp.func_71049_a(p_72368_1_, p_72368_3_);
   entityplayermp.field_70157_k = p_72368_1_.field_70157_k;
   entityplayermp.field_71135_a = p_72368_1_.field_71135_a;
   WorldServer worldserver = field_72400_f.func_71218_a(p_72368_1_.field_71093_bK);
   func_72381_a(entityplayermp, p_72368_1_, worldserver);
   if (chunkcoordinates != null) {
     ChunkCoordinates chunkcoordinates1 =
         EntityPlayer.func_71056_a(
             field_72400_f.func_71218_a(p_72368_1_.field_71093_bK), chunkcoordinates);
     if (chunkcoordinates1 != null) {
       entityplayermp.func_70012_b(
           (float) chunkcoordinates1.field_71574_a + 0.5F,
           (float) chunkcoordinates1.field_71572_b + 0.1F,
           (float) chunkcoordinates1.field_71573_c + 0.5F,
           0.0F,
           0.0F);
       entityplayermp.func_71063_a(chunkcoordinates);
     } else {
       entityplayermp.field_71135_a.func_72567_b(new Packet70GameEvent(0, 0));
     }
   }
   worldserver.field_73059_b.func_73158_c(
       (int) entityplayermp.field_70165_t >> 4, (int) entityplayermp.field_70161_v >> 4);
   for (;
       !worldserver.func_72945_a(entityplayermp, entityplayermp.field_70121_D).isEmpty();
       entityplayermp.func_70107_b(
           entityplayermp.field_70165_t,
           entityplayermp.field_70163_u + 1.0D,
           entityplayermp.field_70161_v)) {}
   entityplayermp.field_71135_a.func_72567_b(
       new Packet9Respawn(
           entityplayermp.field_71093_bK,
           (byte) entityplayermp.field_70170_p.field_73013_u,
           entityplayermp.field_70170_p.func_72912_H().func_76067_t(),
           entityplayermp.field_70170_p.func_72800_K(),
           entityplayermp.field_71134_c.func_73081_b()));
   ChunkCoordinates chunkcoordinates2 = worldserver.func_72861_E();
   entityplayermp.field_71135_a.func_72569_a(
       entityplayermp.field_70165_t,
       entityplayermp.field_70163_u,
       entityplayermp.field_70161_v,
       entityplayermp.field_70177_z,
       entityplayermp.field_70125_A);
   entityplayermp.field_71135_a.func_72567_b(
       new Packet6SpawnPosition(
           chunkcoordinates2.field_71574_a,
           chunkcoordinates2.field_71572_b,
           chunkcoordinates2.field_71573_c));
   func_72354_b(entityplayermp, worldserver);
   worldserver.func_73040_p().func_72683_a(entityplayermp);
   worldserver.func_72838_d(entityplayermp);
   field_72404_b.add(entityplayermp);
   entityplayermp.func_71116_b();
   return entityplayermp;
 }