Class SpellProperty<T>

java.lang.Object
com.binaris.wizardry.api.content.spell.properties.SpellProperty<T>
Type Parameters:
T - The type of the property's value.

public class SpellProperty<T> extends Object
A class representing a property of a spell, such as its cost or cooldown. Each property has a type (e.g. Integer, Float, Boolean), a default value, and a current value, these properties are identified by a unique string.

Properties can be created using the static factory methods provided, such as intProperty(String) or booleanProperty(String, boolean). Once created, the property's value can be accessed and modified using the get() and set(Object) methods respectively. (Check DefaultProperties for examples of predefined properties.)

See Also: