createHoverableText

fun createHoverableText(text: String, hoverText: String): IChatComponent

Creates a new IChatComponent displaying text and showing hoverText when it is hovered. hoverText can include "\n" for new lines.

Use IChatComponent.appendSibling to combine multiple Chat components into one. Use the formatting characters to format the text.