Package dev.booky.cloudcore.util
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 Summary
ConstructorsConstructorDescriptionTranslationLoader(org.bukkit.plugin.Plugin plugin) TranslationLoader(org.bukkit.plugin.Plugin plugin, Locale... locales) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.util.TriStatevoidload()Deprecated, for removal: This API element is subject to removal in a future version.voidload0()@NotNull net.kyori.adventure.key.Keyname()@Nullable MessageFormat@Nullable net.kyori.adventure.text.Componenttranslate(@NotNull net.kyori.adventure.text.TranslatableComponent component, @NotNull Locale locale) voidunload()voidunload0()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
TranslationLoader
public TranslationLoader(org.bukkit.plugin.Plugin plugin) -
TranslationLoader
-
-
Method Details
-
unload
public void unload() -
unload0
Deprecated, for removal: This API element is subject to removal in a future version. -
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:
namein interfacenet.kyori.adventure.translation.Translator
-
hasAnyTranslations
@NotNull public @NotNull net.kyori.adventure.util.TriState hasAnyTranslations()- Specified by:
hasAnyTranslationsin interfacenet.kyori.adventure.translation.Translator
-
translate
@Nullable public @Nullable MessageFormat translate(@NotNull @NotNull String key, @NotNull @NotNull Locale locale) - Specified by:
translatein interfacenet.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:
translatein interfacenet.kyori.adventure.translation.Translator
-