Class UltiToolsTranslator

java.lang.Object
com.ultikits.ultitools.text.internal.UltiToolsTranslator
All Implemented Interfaces:
net.kyori.adventure.translation.Translator

@Internal public final class UltiToolsTranslator extends Object implements net.kyori.adventure.translation.Translator
One framework translation source, backed by the live namespace registry.
  • Field Details

  • Constructor Details

  • Method Details

    • name

      public net.kyori.adventure.key.Key name()
      Specified by:
      name in interface net.kyori.adventure.translation.Translator
    • canTranslate

      public boolean canTranslate(String key, Locale locale)
      Specified by:
      canTranslate in interface net.kyori.adventure.translation.Translator
    • translate

      @Nullable public @Nullable MessageFormat translate(String key, Locale locale)
      Specified by:
      translate in interface net.kyori.adventure.translation.Translator
    • translate

      @Nullable public @Nullable net.kyori.adventure.text.Component translate(net.kyori.adventure.text.TranslatableComponent component, Locale locale)
      Specified by:
      translate in interface net.kyori.adventure.translation.Translator
    • knownKey

      @Nullable private @Nullable MessageKey knownKey(String value)