Class NbtComponentSerializer
java.lang.Object
org.geysermc.mcprotocollib.protocol.codec.NbtComponentSerializer
Taken from ViaVersion's ComponentConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfromIntArray(int[] parts) static @Nullable com.viaversion.nbt.tag.TagjsonComponentToTag(@Nullable com.google.gson.JsonElement component) static @Nullable UUIDstatic @Nullable com.google.gson.JsonElementtagComponentToJson(@Nullable com.viaversion.nbt.tag.Tag tag) static int[]toIntArray(long msb, long lsb) static int[]toIntArray(UUID uuid)
-
Constructor Details
-
NbtComponentSerializer
public NbtComponentSerializer()
-
-
Method Details
-
tagComponentToJson
public static @Nullable com.google.gson.JsonElement tagComponentToJson(@Nullable com.viaversion.nbt.tag.Tag tag) -
jsonComponentToTag
public static @Nullable com.viaversion.nbt.tag.Tag jsonComponentToTag(@Nullable com.google.gson.JsonElement component) -
fromIntArray
-
toIntArray
-
toIntArray
public static int[] toIntArray(long msb, long lsb) -
parseUUID
-