public abstract static class ILootCondition.AbstractSerializer<T extends ILootCondition>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
conditionClass |
private ResourceLocation |
lootTableLocation |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSerializer(ResourceLocation location,
java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
abstract T |
deserialize(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
java.lang.Class<T> |
getConditionClass() |
ResourceLocation |
getLootTableLocation() |
abstract void |
serialize(com.google.gson.JsonObject json,
T value,
com.google.gson.JsonSerializationContext context) |
private final ResourceLocation lootTableLocation
private final java.lang.Class<T extends ILootCondition> conditionClass
protected AbstractSerializer(ResourceLocation location, java.lang.Class<T> clazz)
public ResourceLocation getLootTableLocation()
public java.lang.Class<T> getConditionClass()
public abstract void serialize(com.google.gson.JsonObject json, T value, com.google.gson.JsonSerializationContext context)
public abstract T deserialize(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)