Class SetEnchantmentsLootFunction.Serializer

java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
net.minecraft.loot.function.SetEnchantmentsLootFunction.Serializer
All Implemented Interfaces:
JsonSerializer<SetEnchantmentsLootFunction>
Enclosing class:
SetEnchantmentsLootFunction

public static class SetEnchantmentsLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
Mappings:
Namespace Name
official dki$b
intermediary net/minecraft/class_5642$class_5643
named net/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, SetEnchantmentsLootFunction setEnchantmentsLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<SetEnchantmentsLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldki$b;a(Lcom/google/gson/JsonObject;Ldki;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_32417 Lnet/minecraft/class_5642$class_5643;method_32417(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5642;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public SetEnchantmentsLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<SetEnchantmentsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldki$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldlh;)Ldki;
      intermediary method_32415 Lnet/minecraft/class_5642$class_5643;method_32415(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_5642;
      named fromJson Lnet/minecraft/loot/function/SetEnchantmentsLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetEnchantmentsLootFunction;