Enum Class TextDirection
java.lang.Object
java.lang.Enum<TextDirection>
io.github.thebusybiscuit.slimefun4.core.services.localization.TextDirection
- All Implemented Interfaces:
Serializable
,Comparable<TextDirection>
,Constable
A simple enum to define the direction of text for a given
LanguagePreset
- Author:
- TheBusyBiscuit
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe text flows from left to right.The text flows from right to left. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextDirection
Returns the enum constant of this class with the specified name.static TextDirection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT_TO_RIGHT
The text flows from left to right. This is true for most western languages, such as English, Spanish, German, French and more. -
RIGHT_TO_LEFT
The text flows from right to left. Most common languages that use this direction of text are Hebrew and Arabic.
-
-
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
-