public abstract class AbstractArchetypeAttributeSpell extends ArchetypeAttribute
ArchetypeAttributes
for
spells.TEXTFIELD_COLUMNS
Modifier | Constructor and Description |
---|---|
protected |
AbstractArchetypeAttributeSpell(@NotNull java.lang.String archetypeAttributeName,
@NotNull java.lang.String attributeName,
@NotNull java.lang.String description,
int inputLength)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static int |
findSpellIndex(@NotNull Spells<NumberSpell> numberSpells,
int number)
Returns the spell index for a spell number.
|
getArchetypeAttributeName, getAttributeName, getDescription, getInputLength, toString, visit
protected AbstractArchetypeAttributeSpell(@NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength)
archetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldspublic static int findSpellIndex(@NotNull @NotNull Spells<NumberSpell> numberSpells, int number)
numberSpells
- the number spells to usenumber
- the spell number-1
if not found