color

fun color(color: ChatColor): HoverTextBuilder

Sets the color of the text.

Return

The HoverTextBuilder instance for method chaining.

Parameters

color

The ChatColor to apply to the text.


fun color(r: Int, g: Int, b: Int): HoverTextBuilder

Sets the color of the text using RGB values.

Return

The HoverTextBuilder instance for method chaining.

Parameters

r

The red component (0-255).

g

The green component (0-255).

b

The blue component (0-255).