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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe phase system was paused.The phase system was resumed from a paused state.A new phase is starting normally (phase progression).The phase system was stopped. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GamePhaseChangeEvent.PhaseChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The phase system was paused.Phase timing and progression are temporarily halted.
-
PHASE_RESUMED
The phase system was resumed from a paused state.Phase timing and progression continue from where they were paused.
-
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
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
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 nameNullPointerException- if the argument is null
-