Enum Class OptionDataType

java.lang.Object
java.lang.Enum<OptionDataType>
org.sgrewritten.stargate.api.config.OptionDataType
All Implemented Interfaces:
Serializable, Comparable<OptionDataType>, Constable

public enum OptionDataType extends Enum<OptionDataType>
An enum defining the different data types an option can have
  • Enum Constant Details

    • STRING

      public static final OptionDataType STRING
      The data type if the option is a String
    • COLOR

      public static final OptionDataType COLOR
      The data type if the option is a string color
    • BOOLEAN

      public static final OptionDataType BOOLEAN
      The data type if the option is a Boolean
    • STRING_LIST

      public static final OptionDataType STRING_LIST
      The data type if the option is a string list
    • INTEGER

      public static final OptionDataType INTEGER
      The data type if the option is an Integer
    • DOUBLE

      public static final OptionDataType DOUBLE
      The data type if the option is a double
    • LANGUAGE

      public static final OptionDataType LANGUAGE
      The data type if the option is a string language
    • LOGGING_LEVEL

      public static final OptionDataType LOGGING_LEVEL
      The data type if the option is a string logging level
    • REMOTE_DATABASE_DRIVER

      public static final OptionDataType REMOTE_DATABASE_DRIVER
      The data type if the option is a string remote database driver
    • PORTAL_VALIDITY

      public static final OptionDataType PORTAL_VALIDITY
      How to handle invalid portals
  • Method Details

    • values

      public static OptionDataType[] 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 OptionDataType 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
    • getValues

      public String[] getValues()
      Gets a list of available values for this data type

      Null will be returned for option types with an undefined value scope. This is used for add-ons, and should not be removed!

      Returns:

      A list of available values