Class YamlTranslation
java.lang.Object
ua.mcchickenstudio.opencreative.indev.messages.YamlTranslation
- All Implemented Interfaces:
TranslationManager, Manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaultLocales(boolean replace) @NotNull StringgetContent(@NotNull String path, @NotNull String locale) @NotNull File@NotNull net.kyori.adventure.text.ComponentgetMessage(@NotNull String path) @NotNull net.kyori.adventure.text.ComponentgetMessage(@NotNull String path, @NotNull String locale) @NotNull net.kyori.adventure.text.ComponentgetMessage(@NotNull String path, @NotNull org.bukkit.OfflinePlayer player) @NotNull net.kyori.adventure.text.ComponentgetMessage(@NotNull String path, @NotNull org.bukkit.command.CommandSender sender) @NotNull StringgetName()Returns name of manager, that will be displayed by request in the logs.getTranslation(@NotNull String locale) voidinit()Initialization of manager.booleanChecks if manager is ready to work.
-
Constructor Details
-
YamlTranslation
public YamlTranslation()
-
-
Method Details
-
init
-
isEnabled
-
getMessage
@NotNull public @NotNull net.kyori.adventure.text.Component getMessage(@NotNull @NotNull String path) - Specified by:
getMessagein interfaceTranslationManager
-
getMessage
@NotNull public @NotNull net.kyori.adventure.text.Component getMessage(@NotNull @NotNull String path, @NotNull @NotNull String locale) - Specified by:
getMessagein interfaceTranslationManager
-
getMessage
@NotNull public @NotNull net.kyori.adventure.text.Component getMessage(@NotNull @NotNull String path, @NotNull @NotNull org.bukkit.OfflinePlayer player) - Specified by:
getMessagein interfaceTranslationManager
-
getMessage
@NotNull public @NotNull net.kyori.adventure.text.Component getMessage(@NotNull @NotNull String path, @NotNull @NotNull org.bukkit.command.CommandSender sender) - Specified by:
getMessagein interfaceTranslationManager
-
getTranslation
-
getContent
-
addDefaultLocales
public void addDefaultLocales(boolean replace) -
getName
-
getLocalesFolder
-