Enum Class ANSIColor

java.lang.Object
java.lang.Enum<ANSIColor>
org.geysermc.platform.standalone.gui.ANSIColor
All Implemented Interfaces:
Serializable, Comparable<ANSIColor>, Constable

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

    • BLACK

      public static final ANSIColor BLACK
    • RED

      public static final ANSIColor RED
    • GREEN

      public static final ANSIColor GREEN
    • YELLOW

      public static final ANSIColor YELLOW
    • BLUE

      public static final ANSIColor BLUE
    • MAGENTA

      public static final ANSIColor MAGENTA
    • CYAN

      public static final ANSIColor CYAN
    • WHITE

      public static final ANSIColor WHITE
    • B_BLACK

      public static final ANSIColor B_BLACK
    • B_RED

      public static final ANSIColor B_RED
    • B_GREEN

      public static final ANSIColor B_GREEN
    • B_YELLOW

      public static final ANSIColor B_YELLOW
    • B_BLUE

      public static final ANSIColor B_BLUE
    • B_MAGENTA

      public static final ANSIColor B_MAGENTA
    • B_CYAN

      public static final ANSIColor B_CYAN
    • B_WHITE

      public static final ANSIColor B_WHITE
    • RESET

      public static final ANSIColor RESET
  • Method Details

    • values

      public static ANSIColor[] 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 ANSIColor 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
    • fromANSI

      public static ANSIColor fromANSI(String code)