public abstract static class LootFunction.Serializer<T extends LootFunction> extends ILootFunction.Serializer<T>
Constructor and Description |
---|
Serializer(ResourceLocation p_i50228_1_,
java.lang.Class<T> p_i50228_2_) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(com.google.gson.JsonObject p_212870_1_,
com.google.gson.JsonDeserializationContext p_212870_2_) |
abstract T |
deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
void |
serialize(com.google.gson.JsonObject object,
T functionClazz,
com.google.gson.JsonSerializationContext serializationContext) |
getFunctionClass, getFunctionName
public Serializer(ResourceLocation p_i50228_1_, java.lang.Class<T> p_i50228_2_)
public void serialize(com.google.gson.JsonObject object, T functionClazz, com.google.gson.JsonSerializationContext serializationContext)
serialize
in class ILootFunction.Serializer<T extends LootFunction>
public final T deserialize(com.google.gson.JsonObject p_212870_1_, com.google.gson.JsonDeserializationContext p_212870_2_)
deserialize
in class ILootFunction.Serializer<T extends LootFunction>
public abstract T deserialize(com.google.gson.JsonObject object, com.google.gson.JsonDeserializationContext deserializationContext, ILootCondition[] conditionsIn)