CoreScoreboardManager
public interface ScoreboardManager
Modifier and Type | Method | Description |
---|---|---|
void |
clearBoard(GamePlayer player) |
Resets the sidebar scoreboard for the player to a blank scoreboard.
|
void |
refreshScores() |
Refresh the scores in the scoreboard managed by this ScoreboardManager.
|
void |
refreshTime(int time,
int initialTime) |
Refresh the time on the scoreboard and bossbar to the set time.
|
void |
setBoard(GamePlayer player) |
Sets the sidebar scoreboard for the player to the scoreboard managed by the ScoreboardManager.
|
void refreshTime(int time, int initialTime)
time
- the time remaininginitialTime
- the initial time, used for the bossbar countdownvoid setBoard(GamePlayer player)
player
- the player to set the scoreboard forvoid clearBoard(GamePlayer player)
player
- the player to reset the scoreboard forvoid refreshScores()