Class ServerStatusPing.Serializer

java.lang.Object
net.minecraftforge.network.ServerStatusPing.Serializer
Enclosing class:
ServerStatusPing

public static class ServerStatusPing.Serializer extends Object
  • Field Details

    • VERSION_FLAG_IGNORESERVERONLY

      private static final int VERSION_FLAG_IGNORESERVERONLY
      See Also:
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public static ServerStatusPing deserialize(com.google.gson.JsonObject forgeData)
    • serialize

      public static com.google.gson.JsonObject serialize(ServerStatusPing forgeData)
    • deserializeOptimized

      private static ServerStatusPing deserializeOptimized(com.google.gson.JsonObject forgeData)
    • encodeOptimized

      private static String encodeOptimized(io.netty.buffer.ByteBuf buf)
      Encode given ByteBuf to a String. This is optimized for UTF-16 Code-Point count. Supports at most 2^30 bytes in length
    • decodeOptimized

      private static io.netty.buffer.ByteBuf decodeOptimized(String s)
      Decode binary data encoded by encodeOptimized(io.netty.buffer.ByteBuf)