runelite-api: add stopNow to cleanly shutdown the client

This commit is contained in:
Max Weber
2020-04-07 13:01:44 -06:00
parent edcfeb25fd
commit eb89319cc4

View File

@@ -140,6 +140,13 @@ public interface Client extends GameEngine
*/
void setGameState(GameState gameState);
/**
* Causes the client to shutdown. It is faster than
* {@link java.applet.Applet#stop()} because it doesn't wait for 4000ms.
* This will call {@link System#exit} when it is done
*/
void stopNow();
/**
* Gets the current logged in username.
*