Class AbstractArchetypeAttributeSpell

    • Constructor Detail

      • AbstractArchetypeAttributeSpell

        protected AbstractArchetypeAttributeSpell​(@NotNull
                                                  @NotNull java.lang.String archetypeAttributeName,
                                                  @NotNull
                                                  @NotNull java.lang.String attributeName,
                                                  @NotNull
                                                  @NotNull java.lang.String description,
                                                  int inputLength)
        Creates a new instance.
        Parameters:
        archetypeAttributeName - the archetype attribute name
        attributeName - the user interface attribute name
        description - the attribute's description
        inputLength - the input length in characters for text input fields
    • Method Detail

      • findSpellIndex

        public static int findSpellIndex​(@NotNull
                                         @NotNull Spells<NumberSpell> numberSpells,
                                         int number)
        Returns the spell index for a spell number.
        Parameters:
        numberSpells - the number spells to use
        number - the spell number
        Returns:
        the spell index or -1 if not found