Class JsonUtils


  • public class JsonUtils
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonUtils

        public JsonUtils()
    • 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)