Package net.minecraftforge.common.util
Class JsonUtils
- java.lang.Object
-
- net.minecraftforge.common.util.JsonUtils
-
public class JsonUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonUtils.ImmutableListTypeAdapter
static class
JsonUtils.ImmutableMapTypeAdapter
-
Constructor Summary
Constructors Constructor Description JsonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
listOf
private static <E> com.google.common.reflect.TypeToken<java.util.List<E>> listOf(java.lang.reflect.Type arg)
-
readNBT
@Nullable public static CompoundNBT readNBT(com.google.gson.JsonObject json, java.lang.String key)
-
mapOf
private static <E> com.google.common.reflect.TypeToken<java.util.Map<java.lang.String,E>> mapOf(java.lang.reflect.Type arg)
-
-