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

public abstract class ExtendedTranslator<T> extends BaseTranslator
  • Constructor Details

    • ExtendedTranslator

      public ExtendedTranslator(String id, Locale defaultLocale)
  • Method Details

    • audience

      protected abstract net.kyori.adventure.audience.Audience audience(T subject)
    • locale

      protected abstract Locale locale(T subject)
    • translate

      public net.kyori.adventure.text.Component translate(T subject, net.kyori.adventure.text.TranslatableComponent component)
    • translate

      public final net.kyori.adventure.text.Component translate(T subject, String key)
    • translate

      public final net.kyori.adventure.text.Component translate(T subject, String key, Object... args)
    • translate

      public final net.kyori.adventure.text.Component translate(T subject, String key, net.kyori.adventure.text.Component... args)
    • send

      public void send(T subject, net.kyori.adventure.text.TranslatableComponent component)
    • send

      public final void send(T subject, String key)
    • send

      public final void send(T subject, String key, Object... args)
    • send

      public final void send(T subject, String key, net.kyori.adventure.text.Component... args)
    • hoverable

      public final net.kyori.adventure.text.Component hoverable(T subject, @NotNull @NotNull String msgKey, @NotNull @NotNull String hoverKey)
    • maybeTranslate

      public final net.kyori.adventure.text.Component maybeTranslate(T subject, net.kyori.adventure.text.Component component)