public static enum TextBuffer.ColorDepth extends java.lang.Enum<TextBuffer.ColorDepth>
Enum Constant and Description |
---|
EightBit
240 colors, 16 color palette, defaults to grayscale.
|
FourBit
16 color palette, defaults to Minecraft colors.
|
OneBit
Monochrome color, black and white.
|
Modifier and Type | Method and Description |
---|---|
static TextBuffer.ColorDepth |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextBuffer.ColorDepth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextBuffer.ColorDepth OneBit
public static final TextBuffer.ColorDepth FourBit
public static final TextBuffer.ColorDepth EightBit
public static TextBuffer.ColorDepth[] values()
for (TextBuffer.ColorDepth c : TextBuffer.ColorDepth.values()) System.out.println(c);
public static TextBuffer.ColorDepth valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null