Class CopyNbtLootFunction.Serializer

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

public static class CopyNbtLootFunction.Serializer extends ConditionalLootFunction.Serializer<CopyNbtLootFunction>
Mappings:
Namespace Name
official dzu$d
intermediary net/minecraft/class_3837$class_3842
named net/minecraft/loot/function/CopyNbtLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, CopyNbtLootFunction copyNbtLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<CopyNbtLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<CopyNbtLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzu$d;a(Lcom/google/gson/JsonObject;Ldzu;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_16870 Lnet/minecraft/class_3837$class_3842;method_16870(Lcom/google/gson/JsonObject;Lnet/minecraft/class_3837;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/CopyNbtLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/CopyNbtLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public CopyNbtLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<CopyNbtLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzu$d;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lebl;)Ldzu;
      intermediary method_16871 Lnet/minecraft/class_3837$class_3842;method_16871(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_3837;
      named fromJson Lnet/minecraft/loot/function/CopyNbtLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/CopyNbtLootFunction;