Class SetContentsLootFunction.Serializer

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

public static class SetContentsLootFunction.Serializer extends ConditionalLootFunction.Serializer<SetContentsLootFunction>
Mappings:
Namespace Name
official eaw$b
intermediary net/minecraft/class_134$class_136
named net/minecraft/loot/function/SetContentsLootFunction$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • toJson

      public void toJson(JsonObject jsonObject, SetContentsLootFunction setContentsLootFunction, JsonSerializationContext jsonSerializationContext)
      Specified by:
      toJson in interface JsonSerializer<SetContentsLootFunction>
      Overrides:
      toJson in class ConditionalLootFunction.Serializer<SetContentsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Leaw$b;a(Lcom/google/gson/JsonObject;Leaw;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_604 Lnet/minecraft/class_134$class_136;method_604(Lcom/google/gson/JsonObject;Lnet/minecraft/class_134;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/SetContentsLootFunction$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/function/SetContentsLootFunction;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public SetContentsLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class ConditionalLootFunction.Serializer<SetContentsLootFunction>
      Mappings:
      Namespace Name Mixin selector
      official a Leaw$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lecb;)Leaw;
      intermediary method_605 Lnet/minecraft/class_134$class_136;method_605(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_134;
      named fromJson Lnet/minecraft/loot/function/SetContentsLootFunction$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/function/SetContentsLootFunction;