public static class SetDamage.Serializer extends LootFunction.Serializer<SetDamage>
Modifier | Constructor and Description |
---|---|
protected |
Serializer() |
Modifier and Type | Method and Description |
---|---|
SetDamage |
deserialize(com.google.gson.JsonObject object,
com.google.gson.JsonDeserializationContext deserializationContext,
ILootCondition[] conditionsIn) |
void |
serialize(com.google.gson.JsonObject object,
SetDamage functionClazz,
com.google.gson.JsonSerializationContext serializationContext) |
deserialize
getFunctionClass, getFunctionName
public void serialize(com.google.gson.JsonObject object, SetDamage functionClazz, com.google.gson.JsonSerializationContext serializationContext)
serialize
in class LootFunction.Serializer<SetDamage>
public SetDamage deserialize(com.google.gson.JsonObject object, com.google.gson.JsonDeserializationContext deserializationContext, ILootCondition[] conditionsIn)
deserialize
in class LootFunction.Serializer<SetDamage>