Interface TextTranslation

All Superinterfaces:
Translation

@Immutable public interface TextTranslation extends Translation
A translation backed by a simple text.
  • Method Details

    • of

      static TextTranslation of(String text)
      Creates a new TextTranslation with the given text.
      Parameters:
      text - the text
      Returns:
      the created text translation
    • getText

      String getText()
      Returns the text of this text translation.
    • format

      default String format(TranslationArguments parameters)
      Description copied from interface: Translation
      Formats the translation with the given parameters.
      Specified by:
      format in interface Translation
      Parameters:
      parameters - the translation parameters
      Returns:
      the formatted translation