public enum LoaderState extends java.lang.Enum<LoaderState>
Modifier and Type | Class and Description |
---|---|
static class |
LoaderState.ModState |
Enum Constant and Description |
---|
AVAILABLE |
CONSTRUCTING |
ERRORED |
INITIALIZATION |
LOADING |
NOINIT |
POSTINITIALIZATION |
PREINITIALIZATION |
SERVER_ABOUT_TO_START |
SERVER_STARTED |
SERVER_STARTING |
SERVER_STOPPED |
SERVER_STOPPING |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends FMLStateEvent> |
eventClass |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
FMLStateEvent |
getEvent(java.lang.Object... eventData) |
java.lang.String |
getPrettyName() |
boolean |
hasEvent() |
LoaderState |
requiredState() |
LoaderState |
transition(boolean errored) |
static LoaderState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoaderState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoaderState NOINIT
public static final LoaderState LOADING
public static final LoaderState CONSTRUCTING
public static final LoaderState PREINITIALIZATION
public static final LoaderState INITIALIZATION
public static final LoaderState POSTINITIALIZATION
public static final LoaderState AVAILABLE
public static final LoaderState SERVER_ABOUT_TO_START
public static final LoaderState SERVER_STARTING
public static final LoaderState SERVER_STARTED
public static final LoaderState SERVER_STOPPING
public static final LoaderState SERVER_STOPPED
public static final LoaderState ERRORED
private java.lang.Class<? extends FMLStateEvent> eventClass
private java.lang.String name
public static LoaderState[] values()
for (LoaderState c : LoaderState.values()) System.out.println(c);
public static LoaderState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic LoaderState transition(boolean errored)
public boolean hasEvent()
public FMLStateEvent getEvent(java.lang.Object... eventData)
public LoaderState requiredState()
public java.lang.String getPrettyName()