setHoverAction

fun setHoverAction(action: String): TextComponent

Sets the action to be performed when the component is hovered over. Hover action is set to 'show_text' by default. Possible actions include:

  • show_text

  • show_achievement

  • show_item

  • show_entity

Parameters

action

the hover action

Sources

Link copied to clipboard