public abstract static class ParentedLootEntry.AbstractSerializer<T extends ParentedLootEntry> extends LootEntry.Serializer<T>
Constructor and Description |
---|
AbstractSerializer(ResourceLocation p_i50490_1_,
java.lang.Class<T> p_i50490_2_) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context,
ILootCondition[] conditionsIn) |
protected abstract T |
func_216186_a(com.google.gson.JsonObject p_216186_1_,
com.google.gson.JsonDeserializationContext p_216186_2_,
LootEntry[] p_216186_3_,
ILootCondition[] p_216186_4_) |
void |
serialize(com.google.gson.JsonObject json,
T entryIn,
com.google.gson.JsonSerializationContext context) |
func_216182_a, func_216183_b
public AbstractSerializer(ResourceLocation p_i50490_1_, java.lang.Class<T> p_i50490_2_)
public void serialize(com.google.gson.JsonObject json, T entryIn, com.google.gson.JsonSerializationContext context)
serialize
in class LootEntry.Serializer<T extends ParentedLootEntry>
public final T deserialize(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context, ILootCondition[] conditionsIn)
deserialize
in class LootEntry.Serializer<T extends ParentedLootEntry>
protected abstract T func_216186_a(com.google.gson.JsonObject p_216186_1_, com.google.gson.JsonDeserializationContext p_216186_2_, LootEntry[] p_216186_3_, ILootCondition[] p_216186_4_)