Builder

interface Builder

A builder for building tab list entries.

Functions

Link copied to clipboard

Builds the new tab list entry and registers it to the tab list that the builder was created from.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun displayName(name: Component?): TabListEntry.Builder

Sets the display name of the entry to the given name.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun gameMode(mode: GameMode): TabListEntry.Builder

Sets the game mode of the entry to the given mode.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun latency(latency: Int): TabListEntry.Builder

Sets the latency of the entry to the given latency.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun listed(value: Boolean): TabListEntry.Builder

Sets whether the entry is displayed on the list to the given value.