Enum Class LanguagePreset
java.lang.Object
java.lang.Enum<LanguagePreset>
io.github.thebusybiscuit.slimefun4.core.services.localization.LanguagePreset
- All Implemented Interfaces:
Serializable
,Comparable<LanguagePreset>
,Constable
This enum holds info about a
Language
that is embedded in our resources folder.
Every enum constant holds the key of that Language
as well as a texture hash
for the ItemStack
to display.- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionThis returns the id of thisLanguage
.This returns the direction of text for this language.This returns the texture hash for this language.static LanguagePreset
Returns the enum constant of this class with the specified name.static LanguagePreset[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENGLISH
-
GERMAN
-
FRENCH
-
ITALIAN
-
SPANISH
-
RUSSIAN
-
POLISH
-
UKRAINIAN
-
BELARUSIAN
-
SWEDISH
-
DUTCH
-
DANISH
-
FINNISH
-
NORWEGIAN
-
CZECH
-
ROMANIAN
-
BULGARIAN
-
PORTUGUESE_PORTUGAL
-
PORTUGUESE_BRAZIL
-
HUNGARIAN
-
CROATIAN
-
LATVIAN
-
GREEK
-
SLOVAK
-
VIETNAMESE
-
INDONESIAN
-
CHINESE_CHINA
-
CHINESE_TAIWAN
-
JAPANESE
-
KOREAN
-
HEBREW
-
ARABIC
-
TURKISH
-
PERSIAN
-
SERBIAN
-
AFRIKAANS
-
MALAY
-
THAI
-
MACEDONIAN
-
TAGALOG
-
SINHALA
-
LITHUANIAN
-
-
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
-
getLanguageCode
This returns the id of thisLanguage
.- Returns:
- The language code
-
getTexture
This returns the texture hash for this language. This will be the flag of the corresponding country. (Not accurate I know, but better than having all languages look the same by using the same items)- Returns:
- The texture hash of this language
-
getTextDirection
This returns the direction of text for this language.- Returns:
- The direction of text for this language
-