Interface TestSingleplayerContext
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the singleplayer world.Gets the handle for the client level.Gets the handle for the integrated server.Gets the handle for the world save.
-
Method Details
-
getWorldSave
TestWorldSave getWorldSave()Gets the handle for the world save.- Returns:
- The handle for the world save
-
getClientLevel
TestClientLevelContext getClientLevel()Gets the handle for the client level.- Returns:
- The handle for the client level
-
getServer
TestServerContext getServer()Gets the handle for the integrated server.- Returns:
- The handle for the integrated server
-
close
-