textWithHover

open fun textWithHover(text: String, hover: String): ComponentBuilder

Appends a text component that shows the given text when hovered.

Return

this component builder for chaining

Parameters

text

the text content to append

hover

the text to show when the player hovers over this component


open fun textWithHover(text: String, hover: Component): ComponentBuilder

Appends a text component that shows the given component when hovered.

Return

this component builder for chaining

Parameters

text

the text content to append

hover

the component to show when the player hovers over this component