public static enum BossBar.Color extends Enum<BossBar.Color>
Enum Constant and Description |
---|
BLUE |
GREEN |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
private Formatting |
format |
private String |
name |
Modifier and Type | Method and Description |
---|---|
static BossBar.Color |
byName(String name) |
String |
getName() |
Formatting |
getTextFormat() |
static BossBar.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BossBar.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BossBar.Color PINK
public static final BossBar.Color BLUE
public static final BossBar.Color RED
public static final BossBar.Color GREEN
public static final BossBar.Color YELLOW
public static final BossBar.Color PURPLE
public static final BossBar.Color WHITE
private final String name
private final Formatting format
public static BossBar.Color[] values()
for (BossBar.Color c : BossBar.Color.values()) System.out.println(c);
public static BossBar.Color valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Formatting getTextFormat()
public String getName()
public static BossBar.Color byName(String name)