Class ContextLootNbtProvider.CustomSerializer

java.lang.Object
net.minecraft.loot.provider.nbt.ContextLootNbtProvider.CustomSerializer
All Implemented Interfaces:
JsonSerializing.CustomSerializer<ContextLootNbtProvider>
Enclosing class:
ContextLootNbtProvider

public static class ContextLootNbtProvider.CustomSerializer
extends Object
implements JsonSerializing.CustomSerializer<ContextLootNbtProvider>
Mappings:
Namespace Name
official dhm$b
intermediary net/minecraft/class_5646$class_5647
named net/minecraft/loot/provider/nbt/ContextLootNbtProvider$CustomSerializer
  • Constructor Details

    • CustomSerializer

      public CustomSerializer()
  • Method Details

    • toJson

      public JsonElement toJson​(ContextLootNbtProvider contextLootNbtProvider, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializing.CustomSerializer<ContextLootNbtProvider>
      Mappings:
      Namespace Name Mixin selector
      official a Ldhm$b;a(Ldhm;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_32432 Lnet/minecraft/class_5646$class_5647;method_32432(Lnet/minecraft/class_5646;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$CustomSerializer;toJson(Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
    • fromJson

      public ContextLootNbtProvider fromJson​(JsonElement jsonElement, JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      fromJson in interface JsonSerializing.CustomSerializer<ContextLootNbtProvider>
      Mappings:
      Namespace Name Mixin selector
      official b Ldhm$b;b(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ldhm;
      intermediary method_32433 Lnet/minecraft/class_5646$class_5647;method_32433(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_5646;
      named fromJson Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/provider/nbt/ContextLootNbtProvider;