public abstract static class LootFunction.Serializer<T extends LootFunction>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
functionClass |
private ResourceLocation |
lootTableLocation |
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) |
private final ResourceLocation lootTableLocation
private final java.lang.Class<T extends LootFunction> functionClass
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)