Package net.minecraft.util
Interface JsonSerializing.CustomSerializer<T>
- All Known Implementing Classes:
ConstantLootNumberProvider.CustomSerializer
,ContextLootNbtProvider.CustomSerializer
,ContextLootScoreProvider.CustomSerializer
- Enclosing class:
- JsonSerializing
public static interface JsonSerializing.CustomSerializer<T>
- Mappings:
Namespace Name official dim$b
intermediary net/minecraft/class_5330$class_5332
named net/minecraft/util/JsonSerializing$CustomSerializer
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(JsonElement json, JsonDeserializationContext context) toJson
(T object, JsonSerializationContext context)
-
Method Details
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Ldim$b;a(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
intermediary method_29309
Lnet/minecraft/class_5330$class_5332;method_29309(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/util/JsonSerializing$CustomSerializer;toJson(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Ldim$b;a(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
intermediary method_29308
Lnet/minecraft/class_5330$class_5332;method_29308(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
named fromJson
Lnet/minecraft/util/JsonSerializing$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
-