Class LootingEnchantLootFunction.Serializer

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

public static class LootingEnchantLootFunction.Serializer extends ConditionalLootFunction.Serializer<LootingEnchantLootFunction>
Mappings:
Namespace Name
official dxf$b
intermediary net/minecraft/class_125$class_127
named net/minecraft/loot/function/LootingEnchantLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, LootingEnchantLootFunction lootingEnchantLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<LootingEnchantLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<LootingEnchantLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldxf$b;a(Lcom/google/gson/JsonObject;Ldxf;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_553 Lnet/minecraft/class_125$class_127;method_553(Lcom/google/gson/JsonObject;Lnet/minecraft/class_125;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/LootingEnchantLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/LootingEnchantLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public LootingEnchantLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<LootingEnchantLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldxf$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldyl;)Ldxf;
      intermediary method_554 Lnet/minecraft/class_125$class_127;method_554(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_125;
      named fromJson Lnet/minecraft/loot/function/LootingEnchantLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/LootingEnchantLootFunction;