convert

open fun convert(source: McCommandSource, text: McTextComponent): T

Converts a McTextComponent to a server-specific implementation while considering the server languages.

Return

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

Parameters

source

The source McCommandSource to determine the server's language.

text

The McTextComponent to be converted.


abstract fun convert(language: String, text: McTextComponent): T

Converts a McTextComponent to a server-specific implementation while considering the server languages.

Return

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

Parameters

language

The server's language.

text

The McTextComponent to be converted.