public abstract static class ILootCondition.AbstractSerializer<T extends ILootCondition>
extends java.lang.Object
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractSerializer(ResourceLocation location,
java.lang.Class<T> clazz) |
修飾子とタイプ | メソッドと説明 |
---|---|
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) |
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)