public abstract static class LootCondition.Serializer<T extends LootCondition>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
conditionClass |
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 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 LootCondition> conditionClass
protected Serializer(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)