public class JsonUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonUtils.ImmutableListTypeAdapter |
static class |
JsonUtils.ImmutableMapTypeAdapter |
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
private static <E> com.google.common.reflect.TypeToken<java.util.List<E>> |
listOf(java.lang.reflect.Type arg) |
private static <E> com.google.common.reflect.TypeToken<java.util.Map<java.lang.String,E>> |
mapOf(java.lang.reflect.Type arg) |
static CompoundNBT |
readNBT(com.google.gson.JsonObject json,
java.lang.String key) |
private static <E> com.google.common.reflect.TypeToken<java.util.List<E>> listOf(java.lang.reflect.Type arg)
@Nullable public static CompoundNBT readNBT(com.google.gson.JsonObject json, java.lang.String key)
private static <E> com.google.common.reflect.TypeToken<java.util.Map<java.lang.String,E>> mapOf(java.lang.reflect.Type arg)