public class ArchetypeAttributeInvSpell extends AbstractArchetypeAttributeInvSpell
ArchetypeAttribute
for selecting a spell encoded as an inventory
game object.TEXTFIELD_COLUMNS
Constructor and Description |
---|
ArchetypeAttributeInvSpell(boolean isOptionalSpell,
@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 |
---|---|
boolean |
isOptionalSpell()
Returns whether the spell game object is optional.
|
void |
visit(@NotNull ArchetypeAttributeVisitor visitor)
Calls the
visit() function appropriate for this instance. |
getArchetypeAttributeName, getAttributeName, getDescription, getInputLength, toString
public ArchetypeAttributeInvSpell(boolean isOptionalSpell, @NotNull @NotNull java.lang.String archetypeAttributeName, @NotNull @NotNull java.lang.String attributeName, @NotNull @NotNull java.lang.String description, int inputLength)
isOptionalSpell
- whether the spell game object is optionalarchetypeAttributeName
- the archetype attribute nameattributeName
- the user interface attribute namedescription
- the attribute's descriptioninputLength
- the input length in characters for text input fieldspublic void visit(@NotNull @NotNull ArchetypeAttributeVisitor visitor)
ArchetypeAttribute
visit()
function appropriate for this instance.visit
in class ArchetypeAttribute
visitor
- the visitor to callpublic boolean isOptionalSpell()