Class PingOptions

    • Field Detail

      • DEFAULT

        public static final PingOptions DEFAULT
        Default PingOptions.
    • Method Detail

      • getProtocolVersion

        public ProtocolVersion getProtocolVersion()
        The protocol version used to ping the server.
        Returns:
        the emulated Minecraft version
      • getTimeout

        public long getTimeout()
        The maximum period of time to wait for a response from the remote server.
        Returns:
        the server ping timeout in milliseconds
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object