Package net.minecraft.util
Class JsonSerializing
java.lang.Object
net.minecraft.util.JsonSerializing
public class JsonSerializing extends Object
- Mappings:
Namespace Name official def
intermediary net/minecraft/class_5330
named net/minecraft/util/JsonSerializing
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JsonSerializing.CustomSerializer<T>
(package private) static class
JsonSerializing.GsonSerializer<E,T extends JsonSerializableType<E>>
static class
JsonSerializing.TypeHandler<E,T extends JsonSerializableType<E>>
A handler of JSON serializable types that can either obtain a type from a registry to handle JSON conversion or handle with a custom logic bound to a type. -
Constructor Summary
Constructors Constructor Description JsonSerializing()
-
Method Summary
Modifier and Type Method Description static <E, T extends JsonSerializableType<E>>
JsonSerializing.TypeHandler<E,T>createTypeHandler(Registry<T> registry, String rootFieldName, String idFieldName, Function<E,T> typeIdentification)
-
Constructor Details
-
JsonSerializing
public JsonSerializing()
-
-
Method Details
-
createTypeHandler
public static <E, T extends JsonSerializableType<E>> JsonSerializing.TypeHandler<E,T> createTypeHandler(Registry<T> registry, String rootFieldName, String idFieldName, Function<E,T> typeIdentification)- Mappings:
Namespace Name Mixin selector official a
Ldef;a(Lgn;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Ldef$a;
intermediary method_29306
Lnet/minecraft/class_5330;method_29306(Lnet/minecraft/class_2378;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lnet/minecraft/class_5330$class_5331;
named createTypeHandler
Lnet/minecraft/util/JsonSerializing;createTypeHandler(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Lnet/minecraft/util/JsonSerializing$TypeHandler;
-