Package org.geysermc.geyser.text
Class MinecraftTranslationRegistry
java.lang.Object
net.kyori.adventure.text.renderer.AbstractComponentRenderer<C>
net.kyori.adventure.text.renderer.TranslatableComponentRenderer<String>
org.geysermc.geyser.text.MinecraftTranslationRegistry
- All Implemented Interfaces:
net.kyori.adventure.text.renderer.ComponentRenderer<String>
public class MinecraftTranslationRegistry
extends net.kyori.adventure.text.renderer.TranslatableComponentRenderer<String>
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
-
Method Summary
Methods inherited from class net.kyori.adventure.text.renderer.TranslatableComponentRenderer
mergeStyle, mergeStyleAndOptionallyDeepRender, nbt, optionallyRenderChildrenAppendAndBuild, renderBlockNbt, renderEntityNbt, renderKeybind, renderScore, renderSelector, renderStorageNbt, renderText, renderTranslatable, usingTranslationSource
Methods inherited from class net.kyori.adventure.text.renderer.AbstractComponentRenderer
render
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.text.renderer.ComponentRenderer
mapContext
-
Constructor Details
-
MinecraftTranslationRegistry
public MinecraftTranslationRegistry()
-
-
Method Details
-
translate
- Specified by:
translate
in classnet.kyori.adventure.text.renderer.TranslatableComponentRenderer<String>
-