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
Represents the degree of compatibility between a caster's
MagicSchool and an AiSpellField.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe caster's school belongs to the same magic cycle as one of the spell's schools.The caster's school is neither in the spell's school set nor in the same magic cycle.The caster's school directly matches one of the spell's schools.The spell has no school restriction, or the caster is Aberrant (wildcard). -
Method Summary
Modifier and TypeMethodDescriptionstatic AiSpellField.SchoolAffinityReturns the enum constant of this class with the specified name.static AiSpellField.SchoolAffinity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCOMPATIBLE
The caster's school is neither in the spell's school set nor in the same magic cycle. -
UNRESTRICTED
The spell has no school restriction, or the caster is Aberrant (wildcard). -
CYCLE_SIBLING
The caster's school belongs to the same magic cycle as one of the spell's schools. -
PRIMARY_SCHOOL
The caster's school directly matches one of the spell's schools.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-