Enum Class CapabilityState

java.lang.Object
java.lang.Enum<CapabilityState>
dev.itsharshxd.zentrix.api.platform.CapabilityState
All Implemented Interfaces:
Serializable, Comparable<CapabilityState>, Constable

public enum CapabilityState extends Enum<CapabilityState>
Whether a capability can be used right now, and if not, why.
Since:
1.8.0
  • Enum Constant Details

    • AVAILABLE

      public static final CapabilityState AVAILABLE
      Usable now.
    • INITIALIZING

      public static final CapabilityState INITIALIZING
      Starting up; ask again later.
    • DISABLED

      public static final CapabilityState DISABLED
      Supported by this installation, but switched off by its configuration.
    • RESTRICTED

      public static final CapabilityState RESTRICTED
      Not part of the installed edition. No addon can unlock it.
    • DEPENDENCY_MISSING

      public static final CapabilityState DEPENDENCY_MISSING
      Needs a plugin that is missing, disabled or too old.
    • FAILED

      public static final CapabilityState FAILED
      Tried to start and failed.
    • UNKNOWN

      public static final CapabilityState UNKNOWN
      Not known to this installation, for example an id from a newer release.
  • Method Details

    • values

      public static CapabilityState[] 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 CapabilityState 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
    • isAvailable

      public boolean isAvailable()
      Whether the capability can be used now.
    • isTemporary

      public boolean isTemporary()
      Whether the capability may become available without changing the installation's plugins, edition or version: true only while it is still starting.