Enum Class AreaType

java.lang.Object
java.lang.Enum<AreaType>
de.z0rdak.yawp.core.area.AreaType
All Implemented Interfaces:
Serializable, Comparable<AreaType>, Constable

public enum AreaType extends Enum<AreaType>
  • Enum Constant Details

    • CUBOID

      public static final AreaType CUBOID
    • CYLINDER

      public static final AreaType CYLINDER
    • SPHERE

      public static final AreaType SPHERE
    • POLYGON_3D

      public static final AreaType POLYGON_3D
    • PRISM

      public static final AreaType PRISM
  • Field Details

    • areaType

      public final String areaType
    • neededBlocks

      public final int neededBlocks
    • maxBlocks

      public final int maxBlocks
  • Method Details

    • values

      public static AreaType[] 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 AreaType 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
    • getTypes

      public static Collection<String> getTypes()
    • isValidAreaType

      public static boolean isValidAreaType(String type)
    • of

      public static AreaType of(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AreaType>