Interface TestDedicatedServerConnection

All Superinterfaces:
AutoCloseable, TestServerConnection

@NonExtendable public interface TestDedicatedServerConnection extends TestServerConnection, AutoCloseable
Context for a client gametest containing various helpful functions while a connection to a dedicated server is open. This class implements AutoCloseable and is intended to be used in a try-with-resources statement. When closed, the client will be disconnected from the server.

Unless otherwise specified, methods in this class can only be called on the client gametest thread.

  • Method Details

    • close

      void close()
      Disconnects the client from the dedicated server.
      Specified by:
      close in interface AutoCloseable