Class SetPotionLootFunction.Serializer

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

public static class SetPotionLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetPotionLootFunction>
Mappings:
Namespace Name
official ear$a
intermediary net/minecraft/class_6662$class_6663
named net/minecraft/loot/function/SetPotionLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, SetPotionLootFunction setPotionLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<SetPotionLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<SetPotionLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Lear$a;a(Lcom/google/gson/JsonObject;Lear;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_38930 Lnet/minecraft/class_6662$class_6663;method_38930(Lcom/google/gson/JsonObject;Lnet/minecraft/class_6662;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/SetPotionLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/SetPotionLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public SetPotionLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<SetPotionLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Lear$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lebl;)Lear;
      intermediary method_38929 Lnet/minecraft/class_6662$class_6663;method_38929(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_6662;
      named fromJson Lnet/minecraft/loot/function/SetPotionLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetPotionLootFunction;