Class SetNbtLootFunction.Serializer

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

public static class SetNbtLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetNbtLootFunction>
Mappings:
Namespace Name
official duc$a
intermediary net/minecraft/class_159$class_160
named net/minecraft/loot/function/SetNbtLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, SetNbtLootFunction setNbtLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<SetNbtLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<SetNbtLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Lduc$a;a(Lcom/google/gson/JsonObject;Lduc;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_678 Lnet/minecraft/class_159$class_160;method_678(Lcom/google/gson/JsonObject;Lnet/minecraft/class_159;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/SetNbtLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/SetNbtLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public SetNbtLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<SetNbtLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Lduc$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldux;)Lduc;
      intermediary method_679 Lnet/minecraft/class_159$class_160;method_679(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_159;
      named fromJson Lnet/minecraft/loot/function/SetNbtLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetNbtLootFunction;