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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    translate​(String key, String locale)
     

    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

      @Nullable public MessageFormat translate(@Nonnull String key, @Nonnull String locale)
      Specified by:
      translate in class net.kyori.adventure.text.renderer.TranslatableComponentRenderer<String>