java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.ServerData

public final class ServerData extends Object
The server data a LAN discovery reply carries, hex encoded behind its length. Clients read one of several layouts by its version, and a request does not say which, so a server answers once in each of VERSIONS.
  • Method Details

    • decode

      public static @Nullable PongData decode(io.netty.buffer.ByteBuf payload)
      Reads the server data a reply carries, in any of VERSIONS. A field a version leaves out keeps its PongData.Builder default.
      Parameters:
      payload - The reply after its header: the length, then the hex
      Returns:
      The status, or null for a version this does not know
      Throws:
      IndexOutOfBoundsException - If the data is cut short
      IllegalArgumentException - If the hex is malformed