keybind

abstract infix fun keybind(key: String): ComponentBuilder

Appends a keybind component with the specified keybind key. Displays the key binding configured by the player (e.g., "key.inventory", "key.jump").

Return

this component builder for chaining

Parameters

key

the keybind key


open fun keybind(key: String, styler: Styler.() -> Unit): ComponentBuilder

Appends a keybind component with the specified keybind key and applies additional configuration.

Return

this component builder for chaining

Parameters

key

the keybind key

styler

the styler to apply


Extension property to append this string as a keybind component. Uses this string as the keybind key to display the player's configured key.