public class JsonNbtConverter
extends java.lang.Object
| Constructor | Description |
|---|---|
JsonNbtConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
static com.google.gson.JsonElement |
toJson(net.lenni0451.mcstructs.nbt.NbtTag tag) |
Convert a
NbtTag to a JsonElement. |
static net.lenni0451.mcstructs.nbt.NbtTag |
toNbt(com.google.gson.JsonElement element) |
Convert a
JsonElement to a NbtTag. |
@Nullable
public static com.google.gson.JsonElement toJson(@Nullable
net.lenni0451.mcstructs.nbt.NbtTag tag)
NbtTag to a JsonElement.tag - The tag to convert@Nullable
public static net.lenni0451.mcstructs.nbt.NbtTag toNbt(@Nullable
com.google.gson.JsonElement element)
JsonElement to a NbtTag.element - The element to convert