Package net.minecraft.loot.entry
Class ItemEntry.Serializer
java.lang.Object
net.minecraft.loot.entry.LootPoolEntry.Serializer<T>
net.minecraft.loot.entry.LeafEntry.Serializer<ItemEntry>
net.minecraft.loot.entry.ItemEntry.Serializer
- All Implemented Interfaces:
JsonSerializer<ItemEntry>
- Enclosing class:
- ItemEntry
public static class ItemEntry.Serializer extends LeafEntry.Serializer<ItemEntry>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description void
addEntryFields(JsonObject jsonObject, ItemEntry itemEntry, JsonSerializationContext jsonSerializationContext)
protected ItemEntry
fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction)
Methods inherited from class net.minecraft.loot.entry.LeafEntry.Serializer
fromJson
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, ItemEntry itemEntry, JsonSerializationContext jsonSerializationContext)- Overrides:
addEntryFields
in classLeafEntry.Serializer<ItemEntry>
-
fromJson
protected ItemEntry fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction)- Specified by:
fromJson
in classLeafEntry.Serializer<ItemEntry>
-