Enum Class Spell.Shape

All Implemented Interfaces:
Serializable, Comparable<Spell.Shape>, Constable
Enclosing class:
Spell

public static enum Spell.Shape extends Enum<Spell.Shape>
Area shapes.
  • Enum Constant Details

  • Constructor Details

    • Shape

      private Shape()
  • Method Details

    • values

      public static Spell.Shape[] 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 Spell.Shape 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