Class NbtComponentSerializer
java.lang.Object
com.github.steveice10.mc.protocol.codec.NbtComponentSerializer
Taken from ViaVersion's ComponentConverter
-
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDfromIntArray(int[] parts) static @Nullable com.github.steveice10.opennbt.tag.builtin.TagjsonComponentToTag(@Nullable com.google.gson.JsonElement component) static @Nullable UUIDstatic com.google.gson.JsonElementtagComponentToJson(@Nullable com.github.steveice10.opennbt.tag.builtin.Tag tag) static int[]toIntArray(long msb, long lsb) static int[]toIntArray(UUID uuid)
-
Method Details
-
tagComponentToJson
@Contract("null -> null") public static com.google.gson.JsonElement tagComponentToJson(@Nullable @Nullable com.github.steveice10.opennbt.tag.builtin.Tag tag) -
jsonComponentToTag
@Nullable public static @Nullable com.github.steveice10.opennbt.tag.builtin.Tag jsonComponentToTag(@Nullable @Nullable com.google.gson.JsonElement component) -
fromIntArray
-
toIntArray
-
toIntArray
public static int[] toIntArray(long msb, long lsb) -
parseUUID
-