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
-
Field Summary
Fields inherited from class com.guflimc.brick.i18n.api.translator.BaseTranslator
defaultLocale, id, registry, renderer
-
Constructor Summary
ConstructorDescriptionSpigotTranslator
(org.bukkit.plugin.java.JavaPlugin plugin, Locale defaultLocale) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.audience.Audience
audience
(org.bukkit.command.CommandSender subject) final void
importTranslations
(org.bukkit.plugin.java.JavaPlugin plugin) final void
importTranslations
(org.bukkit.plugin.java.JavaPlugin plugin, String pathToResources) protected Locale
locale
(org.bukkit.command.CommandSender subject) final String
final String
final String
string
(org.bukkit.entity.Player subject, net.kyori.adventure.text.TranslatableComponent component) Methods inherited from class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
hoverable, maybeTranslate, send, send, send, send, translate, translate, translate, translate
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
-
SpigotTranslator
-
-
Method Details
-
audience
protected net.kyori.adventure.audience.Audience audience(org.bukkit.command.CommandSender subject) - Specified by:
audience
in classExtendedTranslator<org.bukkit.command.CommandSender>
-
locale
- Specified by:
locale
in classExtendedTranslator<org.bukkit.command.CommandSender>
-
string
public String string(org.bukkit.entity.Player subject, net.kyori.adventure.text.TranslatableComponent component) -
string
-
string
-
string
-
importTranslations
public final void importTranslations(org.bukkit.plugin.java.JavaPlugin plugin) -
importTranslations
public final void importTranslations(org.bukkit.plugin.java.JavaPlugin plugin, String pathToResources)
-