Scoreboard

object Scoreboard

Types

Link copied to clipboard
class Score(score: MCScore)

Functions

Link copied to clipboard
fun getLineByIndex(index: Int): Scoreboard.Score

Gets the line at the specified index (0 based) Equivalent to Scoreboard.getLines().get(index)

Link copied to clipboard
fun getLines(descending: Boolean = true): List<Scoreboard.Score>

Get all currently visible strings on the scoreboard. (excluding title) Be aware that this can contain color codes.

Link copied to clipboard
fun getLinesByScore(score: Int): List<Scoreboard.Score>

Gets a list of lines that have a certain score, i.e. the numbers shown on the right

Link copied to clipboard
fun getScoreboard(): MCScoreboard?
Link copied to clipboard
fun getScoreboardTitle(): String

Alias for getTitle.

Link copied to clipboard
fun getShouldRender(): Boolean
Link copied to clipboard
fun getSidebar(): ScoreObjective?
Link copied to clipboard
fun getTitle(): String

Gets the top-most string which is displayed on the scoreboard. (doesn't have a score on the side). Be aware that this can contain color codes.

Link copied to clipboard
fun resetCache()
Link copied to clipboard
fun setLine(score: Int, line: String, override: Boolean)

Sets a line in the scoreboard to the specified name and score.

Link copied to clipboard
fun setShouldRender(shouldRender: Boolean)
Link copied to clipboard
fun setTitle(title: String)

Sets the scoreboard title.

Sources

Link copied to clipboard