Package net.minecraft.world.scores
Enum Class DisplaySlot
- All Implemented Interfaces:
Serializable
,Comparable<DisplaySlot>
,Constable
,StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntFunction<DisplaySlot>
static final StringRepresentable.EnumCodec<DisplaySlot>
private final int
private final String
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
id()
static DisplaySlot
teamColorToSlot
(ChatFormatting p_298500_) static DisplaySlot
Returns the enum constant of this class with the specified name.static DisplaySlot[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIST
-
SIDEBAR
-
BELOW_NAME
-
TEAM_BLACK
-
TEAM_DARK_BLUE
-
TEAM_DARK_GREEN
-
TEAM_DARK_AQUA
-
TEAM_DARK_RED
-
TEAM_DARK_PURPLE
-
TEAM_GOLD
-
TEAM_GRAY
-
TEAM_DARK_GRAY
-
TEAM_BLUE
-
TEAM_GREEN
-
TEAM_AQUA
-
TEAM_RED
-
TEAM_LIGHT_PURPLE
-
TEAM_YELLOW
-
TEAM_WHITE
-
-
Field Details
-
CODEC
-
BY_ID
-
id
private final int id -
name
-
-
Constructor Details
-
DisplaySlot
-
-
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
-
id
public int id() -
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
teamColorToSlot
-