Interface TestSingleplayerContext

All Superinterfaces:
AutoCloseable

@NonExtendable public interface TestSingleplayerContext extends AutoCloseable
Context for a client gametest containing various helpful functions while a singleplayer game is open.

Functions in this class can only be called on the client gametest thread.

  • Method Details Link icon

    • getWorldSave Link icon

      TestWorldSave getWorldSave()
      Gets the handle for the world save.
      Returns:
      The handle for the world save
    • getClientWorld Link icon

      TestClientWorldContext getClientWorld()
      Gets the handle for the client world.
      Returns:
      The handle for the client world
    • getServer Link icon

      TestServerContext getServer()
      Gets the handle for the integrated server.
      Returns:
      The handle for the integrated server
    • close Link icon

      void close()
      Closes the singleplayer world.
      Specified by:
      close in interface AutoCloseable