Class ContextLootScoreProvider.CustomSerializer

java.lang.Object
net.minecraft.loot.provider.score.ContextLootScoreProvider.CustomSerializer
All Implemented Interfaces:
JsonSerializing.ElementSerializer<ContextLootScoreProvider>
Enclosing class:
ContextLootScoreProvider

public static class ContextLootScoreProvider.CustomSerializer extends Object implements JsonSerializing.ElementSerializer<ContextLootScoreProvider>
Mappings:
Namespace Name
official dng$a
intermediary net/minecraft/class_5664$class_5665
named net/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer
  • Constructor Details

    • CustomSerializer

      public CustomSerializer()
  • Method Details

    • toJson

      public JsonElement toJson(ContextLootScoreProvider contextLootScoreProvider, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializing.ElementSerializer<ContextLootScoreProvider>
      Mappings:
      Namespace Name Mixin selector
      official a Ldng$a;a(Ldng;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_32468 Lnet/minecraft/class_5664$class_5665;method_32468(Lnet/minecraft/class_5664;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer;toJson(Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
    • fromJson

      public ContextLootScoreProvider fromJson(JsonElement jsonElement, JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      fromJson in interface JsonSerializing.ElementSerializer<ContextLootScoreProvider>
      Mappings:
      Namespace Name Mixin selector
      official b Ldng$a;b(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ldng;
      intermediary method_32469 Lnet/minecraft/class_5664$class_5665;method_32469(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_5664;
      named fromJson Lnet/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;