Class LeafEntry.Serializer<T extends LeafEntry>

java.lang.Object
net.minecraft.loot.entry.LootPoolEntry.Serializer<T>
net.minecraft.loot.entry.LeafEntry.Serializer<T>
All Implemented Interfaces:
JsonSerializer<T>
Direct Known Subclasses:
DynamicEntry.Serializer, EmptyEntry.Serializer, ItemEntry.Serializer, LootTableEntry.Serializer, TagEntry.Serializer
Enclosing class:
LeafEntry

public abstract static class LeafEntry.Serializer<T extends LeafEntry> extends LootPoolEntry.Serializer<T>
Mappings:
Namespace Name
official dkh$e
intermediary net/minecraft/class_85$class_90
named net/minecraft/loot/entry/LeafEntry$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • addEntryFields

      public void addEntryFields(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
      Specified by:
      addEntryFields in class LootPoolEntry.Serializer<T extends LeafEntry>
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh$e;a(Lcom/google/gson/JsonObject;Ldkh;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_442 Lnet/minecraft/class_85$class_90;method_442(Lcom/google/gson/JsonObject;Lnet/minecraft/class_85;Lcom/google/gson/JsonSerializationContext;)V
      named addEntryFields Lnet/minecraft/loot/entry/LeafEntry$Serializer;addEntryFields(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/entry/LeafEntry;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
      Specified by:
      fromJson in class LootPoolEntry.Serializer<T extends LeafEntry>
      Mappings:
      Namespace Name Mixin selector
      official a Ldkh$e;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Ldmg;)Ldkh;
      intermediary method_441 Lnet/minecraft/class_85$class_90;method_441(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/class_5341;)Lnet/minecraft/class_85;
      named fromJson Lnet/minecraft/loot/entry/LeafEntry$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;[Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/entry/LeafEntry;
    • fromJson

      protected abstract T fromJson(JsonObject entryJson, JsonDeserializationContext context, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
      Mappings:
      Namespace Name Mixin selector
      official b Ldkh$e;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;II[Ldmg;[Ldky;)Ldkh;
      intermediary method_443 Lnet/minecraft/class_85$class_90;method_443(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;II[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;)Lnet/minecraft/class_85;
      named fromJson Lnet/minecraft/loot/entry/LeafEntry$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;II[Lnet/minecraft/loot/condition/LootCondition;[Lnet/minecraft/loot/function/LootFunction;)Lnet/minecraft/loot/entry/LeafEntry;