Package net.minecraft.loot
Class LootEntry.Serializer<T extends LootEntry>
java.lang.Object
net.minecraft.loot.LootEntry.Serializer<T>
- All Implemented Interfaces:
ILootSerializer<T>
- Direct Known Subclasses:
StandaloneLootEntry.Serializer
- Enclosing class:
- LootEntry
public abstract static class LootEntry.Serializer<T extends LootEntry>
extends Object
implements ILootSerializer<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal T
deserialize
(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_) abstract T
deserializeCustom
(com.google.gson.JsonObject p_230421_1_, com.google.gson.JsonDeserializationContext p_230421_2_, ILootCondition[] p_230421_3_) final void
serialize
(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_) abstract void
serializeCustom
(com.google.gson.JsonObject p_230422_1_, T p_230422_2_, com.google.gson.JsonSerializationContext p_230422_3_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public final void serialize(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_) - Specified by:
serialize
in interfaceILootSerializer<T extends LootEntry>
-
deserialize
public final T deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_) - Specified by:
deserialize
in interfaceILootSerializer<T extends LootEntry>
-
serializeCustom
public abstract void serializeCustom(com.google.gson.JsonObject p_230422_1_, T p_230422_2_, com.google.gson.JsonSerializationContext p_230422_3_) -
deserializeCustom
public abstract T deserializeCustom(com.google.gson.JsonObject p_230421_1_, com.google.gson.JsonDeserializationContext p_230421_2_, ILootCondition[] p_230421_3_)
-