SurfAutoUpdatableScoreboard

The SurfAutoUpdatableScoreboard interface represents an auto-updatable scoreboard in a surf game. This scoreboard extends the SurfScoreboard interface and adds the ability to automatically update itself every 5 ticks (0.25 seconds). Viewers can be added and removed from the scoreboard.

Inheritors

Functions

Link copied to clipboard
abstract fun addViewer(viewer: Player)

Adds a viewer to the scoreboard.

Link copied to clipboard
abstract fun disable()

Disables the SurfScoreboard. This method closes the scoreboard. It also resets the animations and the enabled flag.

Link copied to clipboard
abstract fun enable()

Creates the scoreboard. This method must be called before any viewers are added.

Link copied to clipboard
abstract fun removeViewer(viewer: Player)

Removes a viewer from the scoreboard. The viewer will no longer see updates on the scoreboard

Link copied to clipboard
@ApiStatus.Internal
abstract override fun update()

Updates the scoreboard.