Serializable
, Comparable<BarStyle>
public enum BarStyle extends Enum<BarStyle>
Enum Constant | Description |
---|---|
SEGMENTED_10 |
Splits the boss bar into 10 segments
|
SEGMENTED_12 |
Splits the boss bar into 12 segments
|
SEGMENTED_20 |
Splits the boss bar into 20 segments
|
SEGMENTED_6 |
Splits the boss bar into 6 segments
|
SOLID |
Makes the boss bar solid (no segments)
|
Modifier and Type | Method | Description |
---|---|---|
static BarStyle |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static BarStyle[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarStyle SOLID
public static final BarStyle SEGMENTED_6
public static final BarStyle SEGMENTED_10
public static final BarStyle SEGMENTED_12
public static final BarStyle SEGMENTED_20
public static BarStyle[] values()
for (BarStyle c : BarStyle.values()) System.out.println(c);
public static BarStyle 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 nullCopyright © 2020. All rights reserved.