Package org.kingdoms.locale
Enum Class SupportedLanguage
- All Implemented Interfaces:
Serializable,Comparable<SupportedLanguage>,Constable,org.kingdoms.constants.DataStringRepresentation,org.kingdoms.locale.Language
public enum SupportedLanguage
extends Enum<SupportedLanguage>
implements org.kingdoms.locale.Language
https://minecraft.fandom.com/wiki/Language
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.kingdoms.locale.Language
org.kingdoms.locale.Language.Companion -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsFields inherited from interface org.kingdoms.locale.Language
Companion -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(org.kingdoms.locale.messenger.DefinedMessenger messenger, MessageProvider provider) @NotNull Stringvoidstatic SupportedLanguage@Nullable GUIObjectgetGUIOrDefault(String name, boolean optional) getGUIs()static List<SupportedLanguage> getMessage(String... path) @Nullable MessageProvidergetMessage(LanguageEntry lang, boolean error) static Collection<String> @NotNull TimeZonegetVariable(MessagePlaceholderProvider settings, String name, boolean raw) getVariableRaw(String name) org.kingdoms.utils.config.importer.YamlGUIImportervoidbooleanbooleanisLoaded()voidsetInstalledCommitSHA(String installedCommitSHA) voidstatic SupportedLanguageReturns the enum constant of this class with the specified name.static SupportedLanguage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EN
-
HU
-
RU
-
ES
-
DE
-
PL
-
TR
-
IT
-
ZH
-
CS
-
UK
-
PT
-
VI
-
-
Field Details
-
VALUES
-
MACROS_ENTRY
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
initialize
public void initialize() -
getYamlImporter
public org.kingdoms.utils.config.importer.YamlGUIImporter getYamlImporter()- Specified by:
getYamlImporterin interfaceorg.kingdoms.locale.Language
-
getLocale
- Specified by:
getLocalein interfaceorg.kingdoms.locale.Language
-
getTimeZone
- Specified by:
getTimeZonein interfaceorg.kingdoms.locale.Language
-
getInstalled
-
getRegisteredGUINames
-
getRepoPath
-
uninitialize
public void uninitialize()- Specified by:
uninitializein interfaceorg.kingdoms.locale.Language
-
isInstalled
public boolean isInstalled()- Specified by:
isInstalledin interfaceorg.kingdoms.locale.Language
-
isLoaded
public boolean isLoaded()- Specified by:
isLoadedin interfaceorg.kingdoms.locale.Language
-
getMainLanguageFile
-
getGUIFolder
-
getGUIOrDefault
- Specified by:
getGUIOrDefaultin interfaceorg.kingdoms.locale.Language
-
addMessage
public void addMessage(org.kingdoms.locale.messenger.DefinedMessenger messenger, MessageProvider provider) -
getMessages
- Specified by:
getMessagesin interfaceorg.kingdoms.locale.Language
-
getGUI
- Specified by:
getGUIin interfaceorg.kingdoms.locale.Language
-
getGUIs
- Specified by:
getGUIsin interfaceorg.kingdoms.locale.Language
-
ensureInstalled
public void ensureInstalled() -
getInstalledCommitSHA
-
setInstalledCommitSHA
-
getLowerCaseName
- Specified by:
getLowerCaseNamein interfaceorg.kingdoms.locale.Language
-
asDataString
- Specified by:
asDataStringin interfaceorg.kingdoms.constants.DataStringRepresentation
-
getAdapter
-
getNativeName
- Specified by:
getNativeNamein interfaceorg.kingdoms.locale.Language
-
fromName
-
getMessage
@Contract("_, true -> !null") @Nullable public @Nullable MessageProvider getMessage(LanguageEntry lang, boolean error) - Specified by:
getMessagein interfaceorg.kingdoms.locale.Language
-
getMessage
- Specified by:
getMessagein interfaceorg.kingdoms.locale.Language
-
getVariableRaw
- Specified by:
getVariableRawin interfaceorg.kingdoms.locale.Language
-
getVariable
- Specified by:
getVariablein interfaceorg.kingdoms.locale.Language
-