Klasse ProtocolVersionDetector

java.lang.Object
com.viaversion.viafabricplus.protocoltranslator.util.ProtocolVersionDetector

public final class ProtocolVersionDetector extends Object
This class can be used to detect the protocol version of a server without connecting to it.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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)
    Detects the protocol version of a server

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 server
      clientVersion - The version of the client
      Gibt zurück:
      The protocol version of the server
      Löst aus:
      Exception