Klasse ProtocolVersionDetector
java.lang.Object
com.viaversion.viafabricplus.protocoltranslator.util.ProtocolVersionDetector
This class can be used to detect the protocol version of a server without connecting to it.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic com.viaversion.viaversion.api.protocol.version.ProtocolVersionget(net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress, InetSocketAddress socketAddress, com.viaversion.viaversion.api.protocol.version.ProtocolVersion clientVersion) Detects the protocol version of a server
-
Konstruktordetails
-
ProtocolVersionDetector
public ProtocolVersionDetector()
-
-
Methodendetails
-
get
public static com.viaversion.viaversion.api.protocol.version.ProtocolVersion get(net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress, InetSocketAddress socketAddress, com.viaversion.viaversion.api.protocol.version.ProtocolVersion clientVersion) throws Exception Detects the protocol version of a server- Parameter:
serverAddress- The address of the serverclientVersion- The version of the client- Gibt zurück:
- The protocol version of the server
- Löst aus:
Exception
-