SurfScoreboard

interface SurfScoreboard

The SurfScoreboard interface represents a scoreboard in a surf game. This scoreboard can be enabled, disabled, and updated. 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
abstract fun update()

Updates the scoreboard. This method should be called periodically to update the contents of the scoreboard.