Package net.minecraftforge.network
Class ServerStatusPing.Serializer
java.lang.Object
net.minecraftforge.network.ServerStatusPing.Serializer
- Enclosing class:
- ServerStatusPing
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static io.netty.buffer.ByteBuf
Decode binary data encoded byencodeOptimized(io.netty.buffer.ByteBuf)
static ServerStatusPing
deserialize
(com.google.gson.JsonObject forgeData) private static ServerStatusPing
deserializeOptimized
(com.google.gson.JsonObject forgeData) private static String
encodeOptimized
(io.netty.buffer.ByteBuf buf) Encode given ByteBuf to a String.static com.google.gson.JsonObject
serialize
(ServerStatusPing forgeData)
-
Field Details
-
VERSION_FLAG_IGNORESERVERONLY
private static final int VERSION_FLAG_IGNORESERVERONLY- See Also:
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
-
serialize
-
deserializeOptimized
-
encodeOptimized
Encode given ByteBuf to a String. This is optimized for UTF-16 Code-Point count. Supports at most 2^30 bytes in length -
decodeOptimized
Decode binary data encoded byencodeOptimized(io.netty.buffer.ByteBuf)
-