Package net.minecraft.loot.entry
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>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description void
addEntryFields(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
protected abstract T
fromJson(JsonObject entryJson, JsonDeserializationContext context, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
T
fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
Methods inherited from class net.minecraft.loot.entry.LootPoolEntry.Serializer
fromJson, toJson
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
addEntryFields
public void addEntryFields(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)- Specified by:
addEntryFields
in classLootPoolEntry.Serializer<T extends LeafEntry>
-
fromJson
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)- Specified by:
fromJson
in classLootPoolEntry.Serializer<T extends LeafEntry>
-
fromJson
protected abstract T fromJson(JsonObject entryJson, JsonDeserializationContext context, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
-