public abstract static class ILootFunction.Serializer<T extends ILootFunction>
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 p_212870_1_,
com.google.gson.JsonDeserializationContext p_212870_2_) |
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 ILootFunction> 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 p_212870_1_, com.google.gson.JsonDeserializationContext p_212870_2_)