Class YamlTranslation
java.lang.Object
ua.mcchickenstudio.opencreative.indev.YamlTranslation
- All Implemented Interfaces:
TranslationManager, Manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.ComponentgetLocaleComponent(@NotNull String id, @NotNull String lang) @NotNull net.kyori.adventure.text.ComponentgetLocaleComponent(@NotNull String id, @NotNull String lang, @NotNull net.kyori.adventure.text.Component def) @NotNull net.kyori.adventure.text.ComponentgetLocaleComponent(@NotNull String id, @NotNull org.bukkit.OfflinePlayer player) @NotNull net.kyori.adventure.text.ComponentgetLocaleComponent(@NotNull String id, @NotNull org.bukkit.OfflinePlayer player, @NotNull net.kyori.adventure.text.Component def) getName()Returns name of manager, that will be displayed by request in the logs.@Nullable TranslationgetTranslation(@NotNull String lang) @NotNull List<Translation> booleanhasLocaleComponent(@NotNull String id, @NotNull String lang) voidinit()Initialization of manager.booleanChecks if manager is ready to work.
-
Constructor Details
-
YamlTranslation
public YamlTranslation()
-
-
Method Details
-
getTranslations
- Specified by:
getTranslationsin interfaceTranslationManager
-
getTranslation
- Specified by:
getTranslationin interfaceTranslationManager
-
getLocaleComponent
@NotNull public @NotNull net.kyori.adventure.text.Component getLocaleComponent(@NotNull @NotNull String id, @NotNull @NotNull String lang) - Specified by:
getLocaleComponentin interfaceTranslationManager
-
hasLocaleComponent
- Specified by:
hasLocaleComponentin interfaceTranslationManager
-
getLocaleComponent
@NotNull public @NotNull net.kyori.adventure.text.Component getLocaleComponent(@NotNull @NotNull String id, @NotNull @NotNull String lang, @NotNull @NotNull net.kyori.adventure.text.Component def) - Specified by:
getLocaleComponentin interfaceTranslationManager
-
getLocaleComponent
@NotNull public @NotNull net.kyori.adventure.text.Component getLocaleComponent(@NotNull @NotNull String id, @NotNull @NotNull org.bukkit.OfflinePlayer player) - Specified by:
getLocaleComponentin interfaceTranslationManager
-
getLocaleComponent
@NotNull public @NotNull net.kyori.adventure.text.Component getLocaleComponent(@NotNull @NotNull String id, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull net.kyori.adventure.text.Component def) - Specified by:
getLocaleComponentin interfaceTranslationManager
-
init
-
isEnabled
-
getName
-