translate

open fun translate(text: McTranslatableText, holder: McChatHolder, key: String): McTextComponent?

Translates text using the server language.

Return

A McTextComponent representing the translated text.

Parameters

text

The text to be translated.

holder

The chat holder whose language setting is used.

key

The translation key.