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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MinecraftTranslationRegistry
public MinecraftTranslationRegistry()
-
-
Method Details
-
name
@Nonnull public net.kyori.adventure.key.Key name()- Specified by:
namein interfacenet.kyori.adventure.translation.Translator
-
translate
- Specified by:
translatein interfacenet.kyori.adventure.translation.Translator
-