From f7a4ddebd6408799311397518138407d25bfce34 Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Wed, 30 Mar 2022 17:10:03 -0700 Subject: [PATCH] added getServerURI --- .../net/lax1dude/eaglercraft/WebsocketNetworkManager.java | 6 ++++++ src/main/java/net/minecraft/src/INetworkManager.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/net/lax1dude/eaglercraft/WebsocketNetworkManager.java b/src/main/java/net/lax1dude/eaglercraft/WebsocketNetworkManager.java index c7c9705..f789e9e 100644 --- a/src/main/java/net/lax1dude/eaglercraft/WebsocketNetworkManager.java +++ b/src/main/java/net/lax1dude/eaglercraft/WebsocketNetworkManager.java @@ -16,8 +16,10 @@ import net.minecraft.src.Packet; public class WebsocketNetworkManager implements INetworkManager { private NetHandler netHandler; + private String serverURI; public WebsocketNetworkManager(String uri, String eagler, NetHandler netHandler) throws IOException { + this.serverURI = uri; this.netHandler = netHandler; if(!EaglerAdapter.startConnection(uri)) { throw new IOException("websocket to "+uri+" failed"); @@ -136,5 +138,9 @@ public class WebsocketNetworkManager implements INetworkManager { EaglerAdapter.setDebugVar("minecraftServer", "null"); } } + + public String getServerURI() { + return this.serverURI; + } } diff --git a/src/main/java/net/minecraft/src/INetworkManager.java b/src/main/java/net/minecraft/src/INetworkManager.java index b9c8079..aa03691 100644 --- a/src/main/java/net/minecraft/src/INetworkManager.java +++ b/src/main/java/net/minecraft/src/INetworkManager.java @@ -39,4 +39,6 @@ public interface INetworkManager { public void networkShutdown(String var1, Object... var2); public void closeConnections(); + + public String getServerURI(); }