upload client name and server address as description

This commit is contained in:
iceBear67
2026-08-08 13:05:57 +08:00
parent c3a9290477
commit 2c69d10361
25 changed files with 322 additions and 5 deletions
@@ -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.
*