Enum Class LifecycleState

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

public enum LifecycleState extends Enum<LifecycleState>
Where Zentrix is in its own startup and shutdown.
Since:
1.8.0
See Also:
  • Enum Constant Details

    • STARTING

      public static final LifecycleState STARTING
      The API is registered, but Zentrix has not finished starting: arenas and saved custom games may still be loading.
    • READY

      public static final LifecycleState READY
      Zentrix has finished starting.
    • STOPPING

      public static final LifecycleState STOPPING
      Zentrix is shutting down; the API is about to be unregistered.
  • Method Details

    • values

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