Class ApplyBonusLootFunction.Serializer

All Implemented Interfaces:
JsonSerializer<ApplyBonusLootFunction>
Enclosing class:
ApplyBonusLootFunction

public static class ApplyBonusLootFunction.Serializer extends ConditionalLootFunction.Serializer<ApplyBonusLootFunction>
Mappings:
Namespace Name
official djo$e
intermediary net/minecraft/class_94$class_99
named net/minecraft/loot/function/ApplyBonusLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, ApplyBonusLootFunction applyBonusLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<ApplyBonusLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<ApplyBonusLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$e;a(Lcom/google/gson/JsonObject;Ldjo;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_469 Lnet/minecraft/class_94$class_99;method_469(Lcom/google/gson/JsonObject;Lnet/minecraft/class_94;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/ApplyBonusLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/ApplyBonusLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public ApplyBonusLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<ApplyBonusLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$e;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldlh;)Ldjo;
      intermediary method_470 Lnet/minecraft/class_94$class_99;method_470(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_94;
      named fromJson Lnet/minecraft/loot/function/ApplyBonusLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/ApplyBonusLootFunction;