Class CopyNbtLootFunction.Serializer

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

public static class CopyNbtLootFunction.Serializer extends ConditionalLootFunction.Serializer<CopyNbtLootFunction>
Mappings:
Namespace Name
official dld$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 Ldld$d;a(Lcom/google/gson/JsonObject;Ldld;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 Ldld$d;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldmt;)Ldld;
      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;