Enum Class LogColor

java.lang.Object
java.lang.Enum<LogColor>
dev.netcode.util.LogColor
All Implemented Interfaces:
Serializable, Comparable<LogColor>, Constable

public enum LogColor extends Enum<LogColor>
Contains prefixes to change the color of the text inside the console
  • Enum Constant Details

    • RESET

      public static final LogColor RESET
      Resets the console color to default
    • BLACK

      public static final LogColor BLACK
      Sets text color to black
    • BLUE

      public static final LogColor BLUE
      Sets text color to blue
    • CYAN

      public static final LogColor CYAN
      Sets text color to cyan
    • GREEN

      public static final LogColor GREEN
      Sets text color to green
    • MAGENTA

      public static final LogColor MAGENTA
      Sets text color to magenta
    • RED

      public static final LogColor RED
      Sets text color to red
    • WHITE

      public static final LogColor WHITE
      Sets text color to white
    • YELLOW

      public static final LogColor YELLOW
      Sets text color to yellow
    • BRIGHT_BLACK

      public static final LogColor BRIGHT_BLACK
      Sets text color to dark gray
    • BRIGHT_BLUE

      public static final LogColor BRIGHT_BLUE
      Sets text color to brighter blue
    • BRIGHT_CYAN

      public static final LogColor BRIGHT_CYAN
      Sets text color to brighter cyan
    • BRIGHT_GREEN

      public static final LogColor BRIGHT_GREEN
      Sets text color to brighter green
    • BRIGHT_MAGENTA

      public static final LogColor BRIGHT_MAGENTA
      Sets text color to brighter magenta
    • BRIGHT_RED

      public static final LogColor BRIGHT_RED
      Sets text color to brighter red
    • BRIGHT_WHITE

      public static final LogColor BRIGHT_WHITE
      Sets text color to brighter white
    • BRIGHT_YELLOW

      public static final LogColor BRIGHT_YELLOW
      Sets text color to brighter yellow
    • ORANGE

      public static final LogColor ORANGE
      Sets text color to orange
    • BRIGHT_ORANGE

      public static final LogColor BRIGHT_ORANGE
      Sets text color to brighter orange
    • DARK_ORANGE

      public static final LogColor DARK_ORANGE
      Sets text color to darker orange
    • PURPLE

      public static final LogColor PURPLE
      Sets text color to purple
    • BRIGHT_PURPLE

      public static final LogColor BRIGHT_PURPLE
      Sets text color to brighter purple
    • DARK_PURPLE

      public static final LogColor DARK_PURPLE
      Sets text color to darker purple
    • DARK_BLUE

      public static final LogColor DARK_BLUE
      Sets text color to darker blue
    • DARK_CYAN

      public static final LogColor DARK_CYAN
      Sets text color to darker cyan
    • DARK_GREEN

      public static final LogColor DARK_GREEN
      Sets text color to darker green
    • DARK_MAGENTA

      public static final LogColor DARK_MAGENTA
      Sets text color to darker magenta
    • DARK_RED

      public static final LogColor DARK_RED
      Sets text color to darker red
    • DARK_WHITE

      public static final LogColor DARK_WHITE
      Sets text color to light gray
    • DARK_YELLOW

      public static final LogColor DARK_YELLOW
      Sets text color to darker yellow
    • BG_BLACK

      public static final LogColor BG_BLACK
      Sets background color to black
  • Method Details

    • values

      public static LogColor[] 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 LogColor 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
    • toString

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