Class IntegratedServerMixin
java.lang.Object
org.geysermc.geyser.platform.mod.mixin.client.IntegratedServerMixin
- All Implemented Interfaces:
GeyserServerPortGetter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntegratedServerMixin
public IntegratedServerMixin()
-
-
Method Details
-
geyser$getServerPort
public int geyser$getServerPort()Description copied from interface:GeyserServerPortGetterReturns the server port.- If it's a dedicated server, it will return the server port specified in the
server.propertiesfile. - If it's an integrated server, it will return the LAN port if opened, else -1.
MinecraftServer.getPort()doesn't return the LAN port if it's the integrated server, and changing the behavior of this method via a mixin should be avoided as it could have unexpected consequences.- Specified by:
geyser$getServerPortin interfaceGeyserServerPortGetter- Returns:
- The server port.
- If it's a dedicated server, it will return the server port specified in the
-