public abstract static class LootFunction.Serializer<T extends LootFunction>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Serializer(ResourceLocation location,
java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
abstract T |
deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
LootCondition[] conditionsIn) |
java.lang.Class<T> |
getFunctionClass() |
ResourceLocation |
getFunctionName() |
abstract void |
serialize(com.google.gson.JsonObject object,
T functionClazz,
com.google.gson.JsonSerializationContext serializationContext) |
protected Serializer(ResourceLocation location, java.lang.Class<T> clazz)
public ResourceLocation getFunctionName()
public java.lang.Class<T> getFunctionClass()
public abstract void serialize(com.google.gson.JsonObject object, T functionClazz, com.google.gson.JsonSerializationContext serializationContext)
public abstract T deserialize(com.google.gson.JsonObject object, com.google.gson.JsonDeserializationContext deserializationContext, LootCondition[] conditionsIn)