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 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.RUNNING
orArenaStatus.LOBBY
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreboardUpdateCause
Returns 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.data
is always null -
TICK
Gets called every second when the state of the arena isArenaStatus.RUNNING
orArenaStatus.LOBBY
. MBedwars will naturally call it in a separate thread, it's though not promised that it'll be done at all times.data
is always null -
PLAYER_ADD
Player has joined the arena.data
is the involvedPlayer
-
PLAYER_REMOVE
Player has left the arena.data
is the involvedPlayer
-
PLAYER_STATS_UPDATE
Stats of a player have changed.data
is thePlayerStats
(never the game stats!) of the player -
PLAYER_TEAM_CHANGE
Player has changed his team.data
is the involvedPlayer
-
BED_DESTROY
Bed of a team has been destroyed.data
is the involvedTeam
-
BED_REVIVE
Bed of a team has been revived (by e.g. a plugin).data
is 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
-