Package org.kingdoms.locale
Enum Class SupportedLanguage
- All Implemented Interfaces:
Serializable,Comparable<SupportedLanguage>,Constable
https://minecraft.fandom.com/wiki/Language
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Map<LanguageEntry,MessageProvider> static final SupportedLanguage[] -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(org.kingdoms.locale.messenger.DefinedMessenger messenger, MessageProvider provider) voidstatic SupportedLanguage@Nullable GUIObjectgetGUIOrDefault(String name, boolean optional) getGUIs()static List<SupportedLanguage>getMessage(String... path) getMessage(LanguageEntry lang, boolean error) static Collection<String>getVariable(MessageBuilder settings, String name, boolean raw) getVariableRaw(String name) voidbooleanvoidsetInstalledCommitSHA(String installedCommitSHA) protected 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
-
-
Field Details
-
VALUES
-
messages
-
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() -
getLocale
-
getInstalled
-
getRegisteredGUINames
-
getRepoPath
-
uninstall
protected void uninstall() -
isInstalled
public boolean isInstalled() -
getMainLanguageFile
-
getGUIFolder
-
getGUIOrDefault
-
addMessage
public void addMessage(org.kingdoms.locale.messenger.DefinedMessenger messenger, MessageProvider provider) -
getMessages
-
getGUI
-
getGUIs
-
ensureInstalled
public void ensureInstalled() -
getInstalledCommitSHA
-
setInstalledCommitSHA
-
getLowerCaseName
-
getAdapter
-
getNativeName
-
fromName
-
getMessage
-
getMessage
-
getVariableRaw
-
getVariable
-