Class EnchantRandomlyLootFunction.Serializer

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

public static class EnchantRandomlyLootFunction.Serializer
extends ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>
Mappings:
Namespace Name
official dfm$b
intermediary net/minecraft/class_109$class_110
named net/minecraft/loot/function/EnchantRandomlyLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson​(JsonObject jsonObject, EnchantRandomlyLootFunction enchantRandomlyLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<EnchantRandomlyLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm$b;a(Lcom/google/gson/JsonObject;Ldfm;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_491 Lnet/minecraft/class_109$class_110;method_491(Lcom/google/gson/JsonObject;Lnet/minecraft/class_109;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public EnchantRandomlyLootFunction fromJson​(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldha;)Ldfm;
      intermediary method_490 Lnet/minecraft/class_109$class_110;method_490(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_109;
      named fromJson Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;