/** Updates the time and weather for the given player to those of the given world */
  public void updateTimeAndWeatherForPlayer(EntityPlayerMP playerIn, WorldServer worldIn) {
    WorldBorder var3 = this.mcServer.worldServers[0].getWorldBorder();
    playerIn.playerNetServerHandler.sendPacket(
        new S44PacketWorldBorder(var3, S44PacketWorldBorder.Action.INITIALIZE));
    playerIn.playerNetServerHandler.sendPacket(
        new S03PacketTimeUpdate(
            worldIn.getTotalWorldTime(),
            worldIn.getWorldTime(),
            worldIn.getGameRules().getGameRuleBooleanValue("doDaylightCycle")));

    if (worldIn.isRaining()) {
      playerIn.playerNetServerHandler.sendPacket(new S2BPacketChangeGameState(1, 0.0F));
      playerIn.playerNetServerHandler.sendPacket(
          new S2BPacketChangeGameState(7, worldIn.getRainStrength(1.0F)));
      playerIn.playerNetServerHandler.sendPacket(
          new S2BPacketChangeGameState(8, worldIn.getWeightedThunderStrength(1.0F)));
    }
  }