Class JSONTypeProvider


  • public class JSONTypeProvider
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • JSONTypeProvider

        public JSONTypeProvider()
    • Method Detail

      • deserialize

        public static <O> O deserialize​(java.lang.Object object,
                                        java.lang.Class<O> clazz)
                                 throws JSONException
        Throws:
        JSONException
      • deserializeNoCast

        public static <O> O deserializeNoCast​(java.lang.Object object,
                                              java.lang.Class<O> clazz)
                                       throws JSONException
        Throws:
        JSONException
      • getSerializer

        public static <O,​J> JSONTypeSerializer<O,​J> getSerializer​(java.lang.Class<O> object)
      • getDeserializer

        public static <J,​O> JSONTypeDeserializer<J,​O> getDeserializer​(java.lang.Class<O> object)
      • parse

        public static java.lang.Object parse​(java.lang.Object object)
      • registerType

        public static void registerType​(java.lang.Class<?> clazz,
                                        java.lang.Object obj)