public enum GameState extends Enum<GameState>
Enum Constant and Description |
---|
CONSTRUCTION
During this state, each
Plugin instance
has been created. |
GAME_STOPPED
The game has stopped and the JVM will exit.
|
GAME_STOPPING
The game is stopping, all network connections should be closed, all
plugins should prepare for shutdown, closing all files.
|
INITIALIZATION
Plugins should finish any work needed to become functional.
|
LOAD_COMPLETE
All plugin initialization and registration should be completed.
|
POST_INITIALIZATION
Plugins have been initialized and should be ready for action.
|
PRE_INITIALIZATION
Plugins are able to access a default logger instance and access
configuration files.
|
SERVER_ABOUT_TO_START
The
Server instance exists, but worlds have not yet loaded. |
SERVER_STARTED
The server is fully loaded and ready to accept clients.
|
SERVER_STARTING
The server instance exists and worlds are loaded.
|
SERVER_STOPPED
The server has stopped saving and no players are connected.
|
SERVER_STOPPING
Server is stopping for any reason.
|
Modifier and Type | Method and Description |
---|---|
static GameState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameState CONSTRUCTION
Plugin
instance
has been created.public static final GameState PRE_INITIALIZATION
public static final GameState INITIALIZATION
public static final GameState POST_INITIALIZATION
public static final GameState LOAD_COMPLETE
public static final GameState SERVER_ABOUT_TO_START
Server
instance exists, but worlds have not yet loaded.public static final GameState SERVER_STARTING
public static final GameState SERVER_STARTED
public static final GameState SERVER_STOPPING
public static final GameState SERVER_STOPPED
public static final GameState GAME_STOPPING
Note: In the case that the JVM is terminated, this state may never be reached.
public static final GameState GAME_STOPPED
Note: In the case that the JVM is terminated, this state may never be reached.
public static GameState[] values()
for (GameState c : GameState.values()) System.out.println(c);
public static GameState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null