public static enum BossBarMessage.Division extends Enum<BossBarMessage.Division>
Enum Constant and Description |
---|
NO_DIVISION |
SIX_NOTCHES |
TEN_NOTCHES |
TWELVE_NOTCHES |
TWENTY_NOTCHES |
Modifier and Type | Method and Description |
---|---|
static BossBarMessage.Division |
fromBarStyle(org.bukkit.boss.BarStyle barStyle)
Converts a
BarStyle to an instance of this enum. |
static BossBarMessage.Division |
fromInt(int i)
Since values() is expensive, we cache it.
|
static BossBarMessage.Division |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BossBarMessage.Division[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BossBarMessage.Division NO_DIVISION
public static final BossBarMessage.Division SIX_NOTCHES
public static final BossBarMessage.Division TEN_NOTCHES
public static final BossBarMessage.Division TWELVE_NOTCHES
public static final BossBarMessage.Division TWENTY_NOTCHES
public static BossBarMessage.Division[] values()
for (BossBarMessage.Division c : BossBarMessage.Division.values()) System.out.println(c);
public static BossBarMessage.Division 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.Division fromInt(int i)
i
- the ordinal to look upi
ArrayIndexOutOfBoundsException
- if values()[i]
doesn't existpublic static BossBarMessage.Division fromBarStyle(org.bukkit.boss.BarStyle barStyle)
BarStyle
to an instance of this enum.barStyle
- the bar style to convertCopyright © 2021. All rights reserved.