line

Adds any line implementing the SideboardLine interface.


fun line(text: Component)(source)

Adds a simple and static line of text.


fun line(flow: Flow<Component>)(source)

Shortcut for adding a SideboardLine.Changing.


inline fun line(block: () -> Component)(source)

Deprecated

This function is not useful enough to stay in Silk, therefore it will be removed in the future.

Replace with

import net.silkmc.silk.game.sideboard.SimpleSideboardLine
line(SimpleSideboardLine(block()))

Adds a simple and static line of text. The block parameter can be used to add some additional logic.