Class MinecraftTranslationRegistry

java.lang.Object
org.geysermc.connector.network.translators.chat.MinecraftTranslationRegistry
All Implemented Interfaces:
net.kyori.adventure.translation.Translator

public class MinecraftTranslationRegistry extends Object implements net.kyori.adventure.translation.Translator
This class is used for mapping a translation key with the already loaded Java locale data Used in MessageTranslator.java as part of the KyoriPowered/Adventure library
  • Constructor Details

    • MinecraftTranslationRegistry

      public MinecraftTranslationRegistry()
  • Method Details

    • name

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

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