addTextComponent

fun addTextComponent(component: Any): Message

Adds a TextComponent or String to the end of the Message.

Return

the Message for method chaining

Parameters

component

the new TextComponent or String to add


fun addTextComponent(index: Int, component: Any): Message

Adds a TextComponent or String at index of the Message.

Return

the Message for method chaining

Parameters

index

the index to insert the new TextComponent or String

component

the new TextComponent or String to insert