Class StandardComponentRenderer
java.lang.Object
net.kyori.adventure.text.renderer.AbstractComponentRenderer<C>
net.kyori.adventure.text.renderer.TranslatableComponentRenderer<Locale>
com.guflimc.brick.i18n.api.translator.StandardComponentRenderer
- All Implemented Interfaces:
net.kyori.adventure.text.renderer.ComponentRenderer<Locale>
public abstract class StandardComponentRenderer
extends net.kyori.adventure.text.renderer.TranslatableComponentRenderer<Locale>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull net.kyori.adventure.text.Component
renderTranslatable
(@NotNull net.kyori.adventure.text.TranslatableComponent component, @NotNull Locale context) static @NotNull StandardComponentRenderer
usingTranslationSource
(@NotNull net.kyori.adventure.translation.Translator source) Methods inherited from class net.kyori.adventure.text.renderer.TranslatableComponentRenderer
mergeStyle, mergeStyleAndOptionallyDeepRender, nbt, optionallyRenderChildrenAppendAndBuild, renderBlockNbt, renderEntityNbt, renderKeybind, renderScore, renderSelector, renderStorageNbt, renderText, translate, translate
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
-
StandardComponentRenderer
public StandardComponentRenderer()
-
-
Method Details
-
usingTranslationSource
@NotNull public static @NotNull StandardComponentRenderer usingTranslationSource(@NotNull @NotNull net.kyori.adventure.translation.Translator source) -
renderTranslatable
@NotNull protected @NotNull net.kyori.adventure.text.Component renderTranslatable(@NotNull @NotNull net.kyori.adventure.text.TranslatableComponent component, @NotNull @NotNull Locale context) - Overrides:
renderTranslatable
in classnet.kyori.adventure.text.renderer.TranslatableComponentRenderer<Locale>
-