Class EnchantWithLevelsLootFunction.Serializer

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

public static class EnchantWithLevelsLootFunction.Serializer extends ConditionalLootFunction.Serializer<EnchantWithLevelsLootFunction>
Mappings:
Namespace Name
official dlf$b
intermediary net/minecraft/class_106$class_108
named net/minecraft/loot/function/EnchantWithLevelsLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, EnchantWithLevelsLootFunction enchantWithLevelsLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<EnchantWithLevelsLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<EnchantWithLevelsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldlf$b;a(Lcom/google/gson/JsonObject;Ldlf;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_485 Lnet/minecraft/class_106$class_108;method_485(Lcom/google/gson/JsonObject;Lnet/minecraft/class_106;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public EnchantWithLevelsLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<EnchantWithLevelsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldlf$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldmt;)Ldlf;
      intermediary method_486 Lnet/minecraft/class_106$class_108;method_486(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_106;
      named fromJson Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction;