com.cliffblaster.game
Enum ChatColor

java.lang.Object
  extended by java.lang.Enum<ChatColor>
      extended by com.cliffblaster.game.ChatColor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChatColor>

public enum ChatColor
extends java.lang.Enum<ChatColor>


Enum Constant Summary
BLACK
           
BLUE
           
BRIGHT_RED
           
CYAN
           
DARK_GREY
           
GREEN
           
GREY
           
LIME
           
MAGENTA
           
NAVY
           
NONE
           
ORANGE
           
PURPLE
           
RED
           
TEAL
           
WHITE
           
YELLOW
           
 
Field Summary
 char color
           
 
Method Summary
 java.lang.String toString()
           
static ChatColor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChatColor[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BLACK

public static final ChatColor BLACK

NAVY

public static final ChatColor NAVY

GREEN

public static final ChatColor GREEN

TEAL

public static final ChatColor TEAL

RED

public static final ChatColor RED

PURPLE

public static final ChatColor PURPLE

ORANGE

public static final ChatColor ORANGE

GREY

public static final ChatColor GREY

DARK_GREY

public static final ChatColor DARK_GREY

BLUE

public static final ChatColor BLUE

LIME

public static final ChatColor LIME

CYAN

public static final ChatColor CYAN

BRIGHT_RED

public static final ChatColor BRIGHT_RED

MAGENTA

public static final ChatColor MAGENTA

YELLOW

public static final ChatColor YELLOW

WHITE

public static final ChatColor WHITE

NONE

public static final ChatColor NONE
Field Detail

color

public final char color
Method Detail

values

public static final ChatColor[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ChatColor c : ChatColor.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ChatColor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ChatColor>