Class TranslationLoader

java.lang.Object
dev.booky.cloudcore.util.TranslationLoader
All Implemented Interfaces:
net.kyori.adventure.translation.Translator

public final class TranslationLoader extends Object implements net.kyori.adventure.translation.Translator
  • Constructor Details

    • TranslationLoader

      public TranslationLoader(org.bukkit.plugin.Plugin plugin)
    • TranslationLoader

      public TranslationLoader(org.bukkit.plugin.Plugin plugin, Locale... locales)
  • Method Details

    • unload

      public void unload()
    • unload0

      @Deprecated(forRemoval=true) public void unload0()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • load

      @Deprecated(forRemoval=true) public void load()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • load0

      public void load0()
    • name

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

      @NotNull public @NotNull net.kyori.adventure.util.TriState hasAnyTranslations()
      Specified by:
      hasAnyTranslations in interface net.kyori.adventure.translation.Translator
    • translate

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

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