Enum Class NumbersDisplayMode
- All Implemented Interfaces:
Serializable
,Comparable<NumbersDisplayMode>
,Constable
Represents the display mode of
ScoreboardNumbers
:
default, only zeros and custom text.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScores will use custom text which may contain formatting codes and be animated.Scores will use red numbers from 0 to 14 based on the number of lines.Scores will use red zeros for every line. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this numbers display mode is supported onVersionUtils.getVersion()
.static NumbersDisplayMode
Returns the enum constant of this class with the specified name.static NumbersDisplayMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DEFAULT
Scores will use red numbers from 0 to 14 based on the number of lines.This format is used for scoreboards sent to players connected through Bedrock.
-
ONLY_ZEROS
Scores will use red zeros for every line.This format is used for scoreboards sent to players connected using 1.20.2 or lower when
CUSTOM_TEXT
is selected. -
CUSTOM_TEXT
Scores will use custom text which may contain formatting codes and be animated.Minimum version: 1.20.3
Found at: "settings.numbers.custom-text" inScoreboard.getConfiguration()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isSupported
public boolean isSupported()Checks if this numbers display mode is supported onVersionUtils.getVersion()
.- Returns:
- Whether this display mode is supported
-