Enum Class AiSpellField.SchoolAffinity

java.lang.Object
java.lang.Enum<AiSpellField.SchoolAffinity>
johnsmith.enchantingoverhauled.api.enchantment.spellfield.AiSpellField.SchoolAffinity
All Implemented Interfaces:
Serializable, Comparable<AiSpellField.SchoolAffinity>, Constable
Enclosing class:
AiSpellField

public static enum AiSpellField.SchoolAffinity extends Enum<AiSpellField.SchoolAffinity>
Represents the degree of compatibility between a caster's MagicSchool and an AiSpellField.
  • Enum Constant Details

    • INCOMPATIBLE

      public static final AiSpellField.SchoolAffinity INCOMPATIBLE
      The caster's school is neither in the spell's school set nor in the same magic cycle.
    • UNRESTRICTED

      public static final AiSpellField.SchoolAffinity UNRESTRICTED
      The spell has no school restriction, or the caster is Aberrant (wildcard).
    • CYCLE_SIBLING

      public static final AiSpellField.SchoolAffinity CYCLE_SIBLING
      The caster's school belongs to the same magic cycle as one of the spell's schools.
    • PRIMARY_SCHOOL

      public static final AiSpellField.SchoolAffinity PRIMARY_SCHOOL
      The caster's school directly matches one of the spell's schools.
  • Method Details

    • values

      public static AiSpellField.SchoolAffinity[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AiSpellField.SchoolAffinity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null