Interface TextTranslation
- All Superinterfaces:
Translation
A translation backed by a simple text.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringformat(TranslationArguments parameters) Formats the translation with the given parameters and return a string.getText()Returns the text of this text translation.static TextTranslationCreates a newTextTranslationwith the given text.Methods inherited from interface com.xpdustry.distributor.api.translation.Translation
formatAsComponent, formatTo
-
Method Details
-
of
Creates a newTextTranslationwith the given text.- Parameters:
text- the text- Returns:
- the created text translation
-
getText
String getText()Returns the text of this text translation. -
format
Description copied from interface:TranslationFormats the translation with the given parameters and return a string.- Specified by:
formatin interfaceTranslation- Parameters:
parameters- the translation parameters- Returns:
- the formatted translation as a string
-