Class ReferenceLootFunction.Serializer

All Implemented Interfaces:
JsonSerializer<ReferenceLootFunction>
Enclosing class:
ReferenceLootFunction

public static class ReferenceLootFunction.Serializer extends ConditionalLootFunction.Serializer<ReferenceLootFunction>
Mappings:
Namespace Name
official eam$a
intermediary net/minecraft/class_8492$class_8493
named net/minecraft/loot/function/ReferenceLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, ReferenceLootFunction referenceLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<ReferenceLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<ReferenceLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Leam$a;a(Lcom/google/gson/JsonObject;Leam;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_51229 Lnet/minecraft/class_8492$class_8493;method_51229(Lcom/google/gson/JsonObject;Lnet/minecraft/class_8492;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/ReferenceLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/ReferenceLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public ReferenceLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<ReferenceLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Leam$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lecb;)Leam;
      intermediary method_51228 Lnet/minecraft/class_8492$class_8493;method_51228(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_8492;
      named fromJson Lnet/minecraft/loot/function/ReferenceLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/ReferenceLootFunction;