SideboardScoreboard

class SideboardScoreboard(name: String, displayName: Component, val numberFormat: NumberFormat)

A server side scoreboard which is only displayed to a selected collection of players. This implementation is used by the net.silkmc.silk.game.sideboard.Sideboard api.

The packet implementation of this class is not completed, thus it is internal for now.

Have a look at net.minecraft.server.ServerScoreboard for a complete packet implementation.

Constructors

Link copied to clipboard
constructor(name: String, displayName: Component, numberFormat: NumberFormat)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class Line(number: Int, content: Component)

Properties

Link copied to clipboard
val numberFormat: NumberFormat

Functions

Link copied to clipboard
suspend fun addLine(initialContent: Component): SideboardScoreboard.Line
Link copied to clipboard
Link copied to clipboard
suspend fun hideFromPlayer(player: ServerPlayer, sendRemove: Boolean = true)