Class ConditionalLootFunction.Serializer<T extends ConditionalLootFunction>

java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Serializer<T>
All Implemented Interfaces:
JsonSerializer<T>
Direct Known Subclasses:
ApplyBonusLootFunction.Serializer, CopyNameLootFunction.Serializer, CopyNbtLootFunction.Serializer, CopyStateFunction.Serializer, EnchantRandomlyLootFunction.Serializer, EnchantWithLevelsLootFunction.Serializer, ExplorationMapLootFunction.Serializer, ExplosionDecayLootFunction.Serializer, FillPlayerHeadLootFunction.Serializer, FurnaceSmeltLootFunction.Serializer, LimitCountLootFunction.Serializer, LootingEnchantLootFunction.Serializer, SetAttributesLootFunction.Serializer, SetBannerPatternFunction.Serializer, SetContentsLootFunction.Serializer, SetCountLootFunction.Serializer, SetDamageLootFunction.Serializer, SetEnchantmentsLootFunction.Serializer, SetInstrumentLootFunction.Serializer, SetLootTableLootFunction.Serializer, SetLoreLootFunction.Serializer, SetNameLootFunction.Serializer, SetNbtLootFunction.Serializer, SetPotionLootFunction.Serializer, SetStewEffectLootFunction.Serializer
Enclosing class:
ConditionalLootFunction

public abstract static class ConditionalLootFunction.Serializer<T extends ConditionalLootFunction> extends Object implements JsonSerializer<T>
Mappings:
Namespace Name
official eab$c
intermediary net/minecraft/class_120$class_123
named net/minecraft/loot/function/ConditionalLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<T extends ConditionalLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Leab$c;a(Lcom/google/gson/JsonObject;Leab;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_529 Lnet/minecraft/class_120$class_123;method_529(Lcom/google/gson/JsonObject;Lnet/minecraft/class_120;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/ConditionalLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/ConditionalLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      fromJson in interface JsonSerializer<T extends ConditionalLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official b Leab$c;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Leab;
      intermediary method_528 Lnet/minecraft/class_120$class_123;method_528(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_120;
      named fromJson Lnet/minecraft/loot/function/ConditionalLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/function/ConditionalLootFunction;
    • fromJson

      public abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)
      Mappings:
      Namespace Name Mixin selector
      official b Leab$c;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lebl;)Leab;
      intermediary method_530 Lnet/minecraft/class_120$class_123;method_530(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_120;
      named fromJson Lnet/minecraft/loot/function/ConditionalLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/ConditionalLootFunction;