upload client name and server address as description
This commit is contained in:
@@ -50,6 +50,20 @@ public interface GameContext {
|
||||
/** The running Minecraft version, for logs and the settings screen's footer. */
|
||||
String minecraftVersion();
|
||||
|
||||
/**
|
||||
* The window title, which modpacks replace with their own name. Recorded
|
||||
* from {@code Window.setTitle} rather than reconstructed, because only the
|
||||
* window knows what some other mod put there.
|
||||
*/
|
||||
String clientName();
|
||||
|
||||
/**
|
||||
* The multiplayer server's address, or empty in single player and on the
|
||||
* title screen. Both the value and its absence are meaningful to the upload
|
||||
* description.
|
||||
*/
|
||||
Optional<String> serverAddress();
|
||||
|
||||
/**
|
||||
* Shuts the game down, having already opened {@code QuitGuard}'s gate.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user