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 def$b
intermediary net/minecraft/class_5330$class_5332
named net/minecraft/util/JsonSerializing$CustomSerializer
  • Method Details

    • toJson

      JsonElement toJson​(T object, JsonSerializationContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldef$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

      T fromJson​(JsonElement json, JsonDeserializationContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldef$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;