Class RestoreCommand
java.lang.Object
za.co.wethinkcode.robots.server.commands.internal.RestoreCommand
The restore command returns the currently running
World to a state
Please see SaveCommand for more information on how to save a world
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(World world, WorldRepository repository, String name) voidexecute(World world, WorldRepository repository, Supplier<Boolean> hasActiveConnections, String name) fromCommand(WorldRepository repository, String resolvedName)
-
Field Details
-
DEFAULT_WORLD_NAME
- See Also:
-
-
Constructor Details
-
RestoreCommand
public RestoreCommand()
-
-
Method Details
-
execute
-
execute
public void execute(World world, WorldRepository repository, Supplier<Boolean> hasActiveConnections, String name) -
fromCommand
public World fromCommand(WorldRepository repository, String resolvedName) throws SQLException, NoSuchWorldException - Throws:
SQLExceptionNoSuchWorldException
-