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>
- Mappings:
Namespace Name official dex$aintermediary net/minecraft/class_77$class_78named net/minecraft/loot/entry/ItemEntry$Serializer
-
Constructor Summary
Constructors Constructor Description Serializer() -
Method Summary
Modifier and Type Method Description voidaddEntryFields(JsonObject jsonObject, ItemEntry itemEntry, JsonSerializationContext jsonSerializationContext)protected ItemEntryfromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction)Methods inherited from class net.minecraft.loot.entry.LeafEntry.Serializer
fromJsonMethods 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:
addEntryFieldsin classLeafEntry.Serializer<ItemEntry>- Mappings:
Namespace Name Mixin selector official aLdex$a;a(Lcom/google/gson/JsonObject;Ldex;Lcom/google/gson/JsonSerializationContext;)Vintermediary method_412Lnet/minecraft/class_77$class_78;method_412(Lcom/google/gson/JsonObject;Lnet/minecraft/class_77;Lcom/google/gson/JsonSerializationContext;)Vnamed addEntryFieldsLnet/minecraft/loot/entry/ItemEntry$Serializer;addEntryFields(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/entry/ItemEntry;Lcom/google/gson/JsonSerializationContext;)V
-
fromJson
protected ItemEntry fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction)- Specified by:
fromJsonin classLeafEntry.Serializer<ItemEntry>- Mappings:
Namespace Name Mixin selector official aLdex$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;II[Ldha;[Ldft;)Ldex;intermediary method_413Lnet/minecraft/class_77$class_78;method_413(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;II[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;)Lnet/minecraft/class_77;named fromJsonLnet/minecraft/loot/entry/ItemEntry$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/ItemEntry;
-