convert

abstract fun convert(text: McTextComponent): T

Converts a single McTextComponent into a server-specific implementation of type T.

Return

A server-specific implementation of type T representing the converted text component.

Parameters

text

The McTextComponent to be converted.


open fun convert(list: List<McTextComponent>): List<T>?

Converts a list of McTextComponent objects into a list of server-specific implementations of type T.

Return

A list of server-specific implementations of type T representing the converted text components.

Parameters

list

The list of McTextComponent objects to be converted.