Enum ScoreboardUpdateCause
- All Implemented Interfaces:
Serializable,Comparable<ScoreboardUpdateCause>,java.lang.constant.Constable
What part of the scoreboard shall be updated
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBed of a team has been destroyed.Bed of a team has been revived (by e.g. a plugin).Complete update.Update PlaceholderAPI placeholdersPlayer has joined the arena.Player has left the arena.Stats of a player have changed.Player has changed his team.Gets called every second when the state of the arena isArenaStatus.RUNNINGorArenaStatus.LOBBY. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreboardUpdateCauseReturns the enum constant of this type with the specified name.static ScoreboardUpdateCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPLETE_REFRESH
Complete update.datais always null -
TICK
Gets called every second when the state of the arena isArenaStatus.RUNNINGorArenaStatus.LOBBY. MBedwars will naturally call it in a separate thread, it's though not promised that it'll be done at all times.datais always null -
PLAYER_ADD
Player has joined the arena.datais the involvedPlayer -
PLAYER_REMOVE
Player has left the arena.datais the involvedPlayer -
PLAYER_STATS_UPDATE
Stats of a player have changed.datais thePlayerStats(never the game stats!) of the player -
PLAYER_TEAM_CHANGE
Player has changed his team.datais the involvedPlayer -
BED_DESTROY
Bed of a team has been destroyed.datais the involvedTeam -
BED_REVIVE
Bed of a team has been revived (by e.g. a plugin).datais the involvedTeam -
PAPI_PLACEHOLDERS
Update PlaceholderAPI placeholders
-
-
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
-