TextComponent

fun TextComponent(text: String)

Creates a TextComponent from a string.

Parameters

text

the text string in the component.


fun TextComponent(chatComponent: MCITextComponent)

Creates a TextComponent from an existing ITextComponent.

Parameters

chatComponent

the ITextComponent to convert