Class ContextLootNbtProvider.CustomSerializer

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

public static class ContextLootNbtProvider.CustomSerializer extends Object implements JsonSerializing.ElementSerializer<ContextLootNbtProvider>
Mappings:
Namespace Name
official ecn$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.ElementSerializer<ContextLootNbtProvider>
      Mappings:
      Namespace Name Mixin selector
      official a Lecn$b;a(Lecn;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.ElementSerializer<ContextLootNbtProvider>
      Mappings:
      Namespace Name Mixin selector
      official b Lecn$b;b(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lecn;
      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;