Package net.minecraftforge.network
Class ServerStatusPing.Serializer
java.lang.Object
net.minecraftforge.network.ServerStatusPing.Serializer
- Enclosing class:
- ServerStatusPing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static io.netty.buffer.ByteBufDecode binary data encoded byencodeOptimized(io.netty.buffer.ByteBuf)static ServerStatusPingdeserialize(com.google.gson.JsonObject forgeData) private static ServerStatusPingdeserializeOptimized(com.google.gson.JsonObject forgeData) private static StringencodeOptimized(io.netty.buffer.ByteBuf buf) Encode given ByteBuf to a String.static com.google.gson.JsonObjectserialize(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)
-