public class MinecraftTranslationRegistry extends Object implements net.kyori.adventure.translation.TranslationRegistry
| Constructor and Description |
|---|
MinecraftTranslationRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
defaultLocale(@NonNull Locale locale) |
@NonNull net.kyori.adventure.key.Key |
name() |
void |
register(@NonNull String key,
@NonNull Locale locale,
@NonNull MessageFormat format) |
@Nullable MessageFormat |
translate(@NonNull String key,
@NonNull Locale locale) |
void |
unregister(@NonNull String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic @NonNull net.kyori.adventure.key.Key name()
name in interface net.kyori.adventure.translation.Translatorpublic @Nullable MessageFormat translate(@NonNull String key, @NonNull Locale locale)
translate in interface net.kyori.adventure.translation.TranslationRegistrytranslate in interface net.kyori.adventure.translation.Translatorpublic void defaultLocale(@NonNull Locale locale)
defaultLocale in interface net.kyori.adventure.translation.TranslationRegistrypublic void register(@NonNull String key, @NonNull Locale locale, @NonNull MessageFormat format)
register in interface net.kyori.adventure.translation.TranslationRegistrypublic void unregister(@NonNull String key)
unregister in interface net.kyori.adventure.translation.TranslationRegistryCopyright © 2020 GeyserMC. All rights reserved.