LinesBuilder

A builder class for defining multiple lines in a sidebar using a more concise DSL.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): List<(Player) -> Component>

Returns the list of line functions.

Link copied to clipboard
@JvmName(name = "plusStringNoArgFunction")
operator fun () -> String.unaryPlus()
@JvmName(name = "plusStringFunction")
operator fun (Player) -> String.unaryPlus()

Adds a string-returning function as a line.

operator fun () -> Component.unaryPlus()

Adds a component-returning function as a line.

operator fun (Player) -> Component.unaryPlus()

Adds a line that changes based on the player.

operator fun String.unaryPlus()

Adds a static string as a line.

operator fun Component.unaryPlus()

Adds a static component as a line.