Enum Class Alignment

All Implemented Interfaces:
Serializable, Comparable<Alignment>, Constable

public enum Alignment extends Enum<Alignment>
Alignment enumeration.
Since:
2014-05-19
  • Enum Constant Details

    • Lawful

      public static final Alignment Lawful
    • Neutral

      public static final Alignment Neutral
    • Chaotic

      public static final Alignment Chaotic
  • Constructor Details

    • Alignment

      private Alignment()
  • Method Details

    • values

      public static Alignment[] 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 Alignment 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
    • getFromChar

      public static Alignment getFromChar(char c)
      Convert a letter to alignment.
    • getFromString

      public static Alignment getFromString(String s)
      Convert a string to an alignment.
    • randomNormal

      public static Alignment randomNormal()
      Randomize a normally-distributed alignment.
    • randomUniform

      public static Alignment randomUniform()
      Randomize a uniformly-distributed alignment.
    • randomLawfulBias

      public static Alignment randomLawfulBias()
      Randomize a Lawful-biased alignment.
    • randomChaoticBias

      public static Alignment randomChaoticBias()
      Randomize a Chaotic-biased alignment.
    • randomBias

      public static Alignment randomBias(Alignment align)
      Randomize an alignment biased toward a given one.