Class TranslationLoader

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

@NullMarked @Deprecated(forRemoval=true) public final class TranslationLoader extends Object implements net.kyori.adventure.translation.Translator
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TranslationLoader(org.bukkit.plugin.Plugin plugin)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TranslationLoader(org.bukkit.plugin.Plugin plugin, Locale... locales)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.util.TriState
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    net.kyori.adventure.key.Key
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable MessageFormat
    translate(String key, Locale locale)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable net.kyori.adventure.text.Component
    translate(net.kyori.adventure.text.TranslatableComponent component, Locale locale)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.translation.Translator

    canTranslate
  • Constructor Details

    • TranslationLoader

      public TranslationLoader(org.bukkit.plugin.Plugin plugin)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TranslationLoader

      public TranslationLoader(org.bukkit.plugin.Plugin plugin, Locale... locales)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • unload

      public void unload()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • name

      public net.kyori.adventure.key.Key name()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      name in interface net.kyori.adventure.translation.Translator
    • hasAnyTranslations

      public net.kyori.adventure.util.TriState hasAnyTranslations()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasAnyTranslations in interface net.kyori.adventure.translation.Translator
    • translate

      public @Nullable MessageFormat translate(String key, Locale locale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      translate in interface net.kyori.adventure.translation.Translator
    • translate

      public @Nullable net.kyori.adventure.text.Component translate(net.kyori.adventure.text.TranslatableComponent component, Locale locale)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      translate in interface net.kyori.adventure.translation.Translator