Enum Class Load.State

java.lang.Object
java.lang.Enum<Load.State>
de.Keyle.MyPet.api.util.service.Load.State
All Implemented Interfaces:
Serializable, Comparable<Load.State>, Constable
Enclosing class:
Load

public static enum Load.State extends Enum<Load.State>
The startup phases a service can be loaded at.
  • Enum Constant Details

    • OnLoad

      public static final Load.State OnLoad
      During MyPet's onLoad, before any plugin has enabled.
    • OnEnable

      public static final Load.State OnEnable
      During MyPet's onEnable. The default.
    • Migration

      public static final Load.State Migration
      After enable, while stored data is migrated.
    • Hooks

      public static final Load.State Hooks
      After migration, while third-party integrations are wired up.
    • OnReady

      public static final Load.State OnReady
      Last, once everything else is in place.
  • Method Details

    • values

      public static Load.State[] 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 Load.State 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