Class SetNbtLootFunction.Serializer

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

public static class SetNbtLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetNbtLootFunction>
Mappings:
Namespace Name
official ebn$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 Lebn$a;a(Lcom/google/gson/JsonObject;Lebn;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 Lebn$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Leck;)Lebn;
      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;