Interface JsonSerializing.ElementSerializer<T>

All Known Implementing Classes:
ConstantLootNumberProvider.CustomSerializer, ContextLootNbtProvider.CustomSerializer, ContextLootScoreProvider.CustomSerializer
Enclosing class:
JsonSerializing

public static interface JsonSerializing.ElementSerializer<T>
Mappings:
Namespace Name
official drd$b
intermediary net/minecraft/class_5330$class_5332
named net/minecraft/util/JsonSerializing$ElementSerializer
  • Method Details

    • toJson

      JsonElement toJson(T object, JsonSerializationContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrd$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$ElementSerializer;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 Ldrd$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$ElementSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;