Class ExtendedTranslator<T>
java.lang.Object
com.guflimc.brick.i18n.api.translator.BaseTranslator
com.guflimc.brick.i18n.api.translator.ExtendedTranslator<T>
- Direct Known Subclasses:
SpigotTranslator
-
Field Summary
Fields inherited from class com.guflimc.brick.i18n.api.translator.BaseTranslator
defaultLocale, id, registry, renderer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.kyori.adventure.audience.Audience
final net.kyori.adventure.text.Component
protected abstract Locale
final net.kyori.adventure.text.Component
maybeTranslate
(T subject, net.kyori.adventure.text.Component component) final void
final void
final void
void
final net.kyori.adventure.text.Component
final net.kyori.adventure.text.Component
final net.kyori.adventure.text.Component
net.kyori.adventure.text.Component
Methods inherited from class com.guflimc.brick.i18n.api.translator.BaseTranslator
center, center, hoverable, hoverable, id, importTranslations, importTranslations, importTranslations, maybeTranslate, maybeTranslate, menu, menu, paddingAround, paddingAround, send, send, send, send, translatable, translatable, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, width
-
Constructor Details
-
ExtendedTranslator
-
-
Method Details
-
audience
-
locale
-
translate
public net.kyori.adventure.text.Component translate(T subject, net.kyori.adventure.text.TranslatableComponent component) -
translate
-
translate
-
translate
-
send
-
send
-
send
-
send
-
hoverable
-
maybeTranslate
public final net.kyori.adventure.text.Component maybeTranslate(T subject, net.kyori.adventure.text.Component component)
-