Enum Class GamePhaseChangeEvent.PhaseChangeType

java.lang.Object
java.lang.Enum<GamePhaseChangeEvent.PhaseChangeType>
dev.itsharshxd.zentrix.api.events.game.GamePhaseChangeEvent.PhaseChangeType
All Implemented Interfaces:
Serializable, Comparable<GamePhaseChangeEvent.PhaseChangeType>, Constable
Enclosing class:
GamePhaseChangeEvent

public static enum GamePhaseChangeEvent.PhaseChangeType extends Enum<GamePhaseChangeEvent.PhaseChangeType>
Represents the type of phase change that occurred.
  • Enum Constant Details

    • PHASE_START

      public static final GamePhaseChangeEvent.PhaseChangeType PHASE_START
      A new phase is starting normally (phase progression).

      This is the most common change type, occurring when one phase ends and the next phase begins during normal gameplay.

    • PHASE_PAUSED

      public static final GamePhaseChangeEvent.PhaseChangeType PHASE_PAUSED
      The phase system was paused.

      Phase timing and progression are temporarily halted.

    • PHASE_RESUMED

      public static final GamePhaseChangeEvent.PhaseChangeType PHASE_RESUMED
      The phase system was resumed from a paused state.

      Phase timing and progression continue from where they were paused.

    • PHASE_STOPPED

      public static final GamePhaseChangeEvent.PhaseChangeType PHASE_STOPPED
      The phase system was stopped.

      This typically occurs when a game is ending or being forcibly stopped. No further phase progressions will occur.

  • Method Details

    • values

      public static GamePhaseChangeEvent.PhaseChangeType[] 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 GamePhaseChangeEvent.PhaseChangeType 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