Enum Class KeepOnline

java.lang.Object
java.lang.Enum<KeepOnline>
dev.le_app.mcss_api_java.KeepOnline
All Implemented Interfaces:
Serializable, Comparable<KeepOnline>, Constable

public enum KeepOnline extends Enum<KeepOnline>
The keep online behaviour of a server
  • Enum Constant Details

    • NONE

      public static final KeepOnline NONE
      Server can shutdown / crash
    • ELEVATED

      public static final KeepOnline ELEVATED
      Server will be restarted if it crashes
    • AGGRESSIVE

      public static final KeepOnline AGGRESSIVE
      Server will be restarted if it crashes or is shutdown
  • Method Details

    • values

      public static KeepOnline[] 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 KeepOnline 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
    • getValue

      public int getValue()
      Gets associated value for the keep online behaviour - Used for API requests.
      Returns:
      The keep online behaviour as INT.
    • findByVal

      public static KeepOnline findByVal(int abbr)
      Gets the keep online behaviour from the value.
      Parameters:
      abbr - The value to get the keep online behaviour from.
      Returns:
      The keep online behaviour.