Class SpigotTranslator

java.lang.Object
com.guflimc.brick.i18n.api.translator.BaseTranslator
com.guflimc.brick.i18n.api.translator.ExtendedTranslator<org.bukkit.command.CommandSender>
com.guflimc.brick.i18n.spigot.api.SpigotTranslator

public class SpigotTranslator extends ExtendedTranslator<org.bukkit.command.CommandSender>
  • Constructor Details

    • SpigotTranslator

      public SpigotTranslator(org.bukkit.plugin.java.JavaPlugin plugin, Locale defaultLocale)
  • Method Details

    • audience

      protected net.kyori.adventure.audience.Audience audience(org.bukkit.command.CommandSender subject)
      Specified by:
      audience in class ExtendedTranslator<org.bukkit.command.CommandSender>
    • locale

      protected Locale locale(org.bukkit.command.CommandSender subject)
      Specified by:
      locale in class ExtendedTranslator<org.bukkit.command.CommandSender>
    • string

      public String string(org.bukkit.entity.Player subject, net.kyori.adventure.text.TranslatableComponent component)
    • string

      public final String string(org.bukkit.entity.Player subject, String key)
    • string

      public final String string(org.bukkit.entity.Player subject, String key, Object... args)
    • string

      public final String string(org.bukkit.entity.Player subject, String key, net.kyori.adventure.text.Component... args)
    • importTranslations

      public final void importTranslations(org.bukkit.plugin.java.JavaPlugin plugin)
    • importTranslations

      public final void importTranslations(org.bukkit.plugin.java.JavaPlugin plugin, String pathToResources)