Scoreboard

interface Scoreboard

Representation of a configurable scoreboard for a house/workspace.

A Scoreboard exposes the configured lines shown to players and allows reading and replacing the full set of lines.

Implementations perform sequential behavior and therefore expose suspend functions for better interaction with Housing.

Inheritors

Types

Link copied to clipboard
sealed class LineType

A single line entry on the scoreboard.

Link copied to clipboard
sealed class VariableType

Possible scopes of variables referenced by scoreboard lines.

Functions

Link copied to clipboard
abstract suspend fun getLines(): List<Scoreboard.LineType>

Returns the currently configured scoreboard lines in their display order.

Link copied to clipboard
abstract suspend fun setLines(newLines: List<Scoreboard.LineType>): Scoreboard

Replaces the scoreboard lines with the provided list. Be careful, as certain built-in line types take up multiple actual scoreboard lines.