Class CopyNameLootFunction.Serializer

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

public static class CopyNameLootFunction.Serializer
extends ConditionalLootFunction.Serializer<CopyNameLootFunction>
Mappings:
Namespace Name
official dfk$b
intermediary net/minecraft/class_101$class_103
named net/minecraft/loot/function/CopyNameLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson​(JsonObject jsonObject, CopyNameLootFunction copyNameLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<CopyNameLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<CopyNameLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldfk$b;a(Lcom/google/gson/JsonObject;Ldfk;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_476 Lnet/minecraft/class_101$class_103;method_476(Lcom/google/gson/JsonObject;Lnet/minecraft/class_101;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/CopyNameLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/CopyNameLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public CopyNameLootFunction fromJson​(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<CopyNameLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Ldfk$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldha;)Ldfk;
      intermediary method_477 Lnet/minecraft/class_101$class_103;method_477(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_101;
      named fromJson Lnet/minecraft/loot/function/CopyNameLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/CopyNameLootFunction;