Uses of Enum Class
valorless.valorlessutils.translate.Language
Packages that use Language
-
Uses of Language in valorless.valorlessutils.translate
Methods in valorless.valorlessutils.translate that return LanguageModifier and TypeMethodDescriptionstatic LanguageLanguage.getLanguage(String code) Returns the Language enum constant corresponding to the given language code.Translator.getLanguage()Returns theLanguagethat is currently active for this translator.static LanguageReturns the enum constant of this class with the specified name.static Language[]Language.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in valorless.valorlessutils.translate with parameters of type LanguageModifier and TypeMethodDescriptionTranslator.downloadLanguage(Language language) Downloads the.langfile for the specifiedLanguagefrom the ValorlessUtils GitHub repository and saves it to the plugin's data folder.booleanTranslator.fileExists(Language language) Checks whether the.langfile for the givenLanguagealready exists in the plugin's data folder for the current server version.Translator.getLanguageFileContent(Language language) Reads and returns the raw JSON content of the.langfile for the givenLanguagefrom the plugin's data folder.voidTranslator.setLanguage(Language language) Switches the active language tolanguageand reloads the translation map.Constructors in valorless.valorlessutils.translate with parameters of type LanguageModifierConstructorDescriptionTranslator(Language language) Creates a newTranslatorand immediately loads translations for the givenLanguage.