public static enum BossBarMessage.Color extends Enum<BossBarMessage.Color>
Enum Constant and Description |
---|
BLUE |
GREEN |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
static BossBarMessage.Color |
fromBarColor(org.bukkit.boss.BarColor barColor)
Converts a
BarColor to an instance of this enum. |
static BossBarMessage.Color |
fromInt(int i)
Since values() is expensive, we cache it.
|
static BossBarMessage.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BossBarMessage.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BossBarMessage.Color PINK
public static final BossBarMessage.Color BLUE
public static final BossBarMessage.Color RED
public static final BossBarMessage.Color GREEN
public static final BossBarMessage.Color YELLOW
public static final BossBarMessage.Color PURPLE
public static final BossBarMessage.Color WHITE
public static BossBarMessage.Color[] values()
for (BossBarMessage.Color c : BossBarMessage.Color.values()) System.out.println(c);
public static BossBarMessage.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 static BossBarMessage.Color fromInt(int i)
i
- the ordinal to look upi
ArrayIndexOutOfBoundsException
- if values()[i]
doesn't existpublic static BossBarMessage.Color fromBarColor(org.bukkit.boss.BarColor barColor)
BarColor
to an instance of this enum.barColor
- the bar color to convertCopyright © 2021. All rights reserved.