java.lang.Object
java.lang.Enum<TextDirection>
io.github.thebusybiscuit.slimefun4.core.services.localization.TextDirection
All Implemented Interfaces:
Serializable, Comparable<TextDirection>, Constable

public enum TextDirection extends Enum<TextDirection>
A simple enum to define the direction of text for a given LanguagePreset
Author:
TheBusyBiscuit
  • Enum Constant Details

    • LEFT_TO_RIGHT

      public static final TextDirection 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

      public static final TextDirection 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

      public static TextDirection[] 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

      public static TextDirection valueOf(String name)
      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 name
      NullPointerException - if the argument is null