/** processes packets and pending connections */
  public void networkTick() {
    if (this.theMemoryConnection != null) {
      EntityPlayerMP var1 =
          this.getIntegratedServer()
              .getConfigurationManager()
              .createPlayerForUser(this.field_71759_e);

      if (var1 != null) {
        this.netMemoryConnection.pairWith(this.theMemoryConnection);
        this.field_71756_f = true;
        this.getIntegratedServer()
            .getConfigurationManager()
            .initializeConnectionToPlayer(this.netMemoryConnection, var1);
      }

      this.theMemoryConnection = null;
      this.field_71759_e = null;
    }

    if (this.myServerListenThread != null) {
      this.myServerListenThread.processPendingConnections();
    }

    super.networkTick();
  }
  public void stopListening() {
    super.stopListening();

    if (this.myServerListenThread != null) {
      this.getIntegratedServer().func_98033_al().func_98233_a("Stopping server connection");
      this.myServerListenThread.func_71768_b();
      this.myServerListenThread.interrupt();
      this.myServerListenThread = null;
    }
  }