hoverEvent

abstract infix fun hoverEvent(event: HoverEvent<*>): ComponentBuilder

Applies a hover event to the last appended component. When the player hovers over this component, the specified hover event will be triggered.

Return

this component builder for chaining

Parameters

event

the hover event to apply (e.g., show text, show item, show entity)