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 dsj$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 Ldsj$b;a(Lcom/google/gson/JsonObject;Ldsj;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 Ldsj$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldtz;)Ldsj;
      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;