Enum ScoreboardType
- All Implemented Interfaces:
Serializable
,Comparable<ScoreboardType>
,java.lang.constant.Constable
The occasion used by
ScoreboardHandler
to determinate what exactly shall be shown-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGame has ended (ArenaStatus.END_LOBBY
)In a round (ArenaStatus.RUNNING
)Waiting in the lobby (ArenaStatus.LOBBY
)Spectating the game -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ScoreboardType
Looks through all ScoreboardTypes and checks which team fits the best to the given name.static ScoreboardType
Returns the enum constant of this type with the specified name.static ScoreboardType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INGAME
In a round (ArenaStatus.RUNNING
) -
LOBBY
Waiting in the lobby (ArenaStatus.LOBBY
) -
END_LOBBY
Game has ended (ArenaStatus.END_LOBBY
) -
SPECTATOR
Spectating the game
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getByName
Looks through all ScoreboardTypes and checks which team fits the best to the given name.Ignores upper and lowercase.
- Parameters:
name
- The name of the ScoreboardType it should look up for- Returns:
- The type that matches the name. Returns null if it hasn't found any
-