addUpdatableLine

abstract fun addUpdatableLine(line: Supplier<Component>): SurfScoreboardBuilder

Adds an updatable line to the scoreboard. An updatable line is a line that can be dynamically updated by supplying a Supplier that returns the updated content.

Return

the SurfScoreboardBuilder instance

Parameters

line

the Supplier that provides the updated content for the line

Throws

if the line parameter is null