Package net.minecraftforge.fml
Enum Class ModLoadingStage
- All Implemented Interfaces:
Serializable
,Comparable<ModLoadingStage>
,Constable
Mod loading stage of mod containers during the mod loading process. These will have a corresponding
ModLoadingState
in the basic mod loading process provided by FML.
Each mod loading stage has a global DeferredWorkQueue
, which is populated during the execution of the state
associated with this stage and emptied at the end of the state's execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCommon (non-side-specific) setup and initialization.Marks the completion of mod loading for this container.Default stage of mod containers after construction.Marks the completion of the full mod loading process.Stage for enqueuingInterModComms
messages for later processing.Special stage for exceptional situations and error handling.Stage for processing received messages thoughInterModComms
.Side-specific setup and initialization.Validation of the mod list. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncurrentState
(Throwable exception) Returns this stage, orERROR
if the exception is notnull
.Returns the deferred work queue for this stage.(package private) ModLoadingStage
Returns the next stage after this stage, orERROR
if the exception is notnull
.static ModLoadingStage
Returns the enum constant of this class with the specified name.static ModLoadingStage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Special stage for exceptional situations and error handling. -
VALIDATE
Validation of the mod list. TODO: figure out where this is used and why this exists instead of CONSTRUCT being the first normal stage -
CONSTRUCT
Default stage of mod containers after construction. -
COMMON_SETUP
Common (non-side-specific) setup and initialization. -
SIDED_SETUP
Side-specific setup and initialization.- See Also:
-
Dist
-
ENQUEUE_IMC
Stage for enqueuingInterModComms
messages for later processing. -
PROCESS_IMC
Stage for processing received messages thoughInterModComms
. -
COMPLETE
Marks the completion of mod loading for this container. -
DONE
Marks the completion of the full mod loading process.
-
-
Field Details
-
deferredWorkQueue
-
-
Constructor Details
-
ModLoadingStage
private ModLoadingStage()
-
-
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
-
nextState
Returns the next stage after this stage, orERROR
if the exception is notnull
.- Parameters:
exception
- the exception that occurred during this stage, may benull
- Returns:
- the next stage after this stage, or
ERROR
if the exception is notnull
-
currentState
Returns this stage, orERROR
if the exception is notnull
.- Parameters:
exception
- the exception that occurred during this stage, may benull
- Returns:
- this stage, or
ERROR
if the exception is notnull
-
getDeferredWorkQueue
Returns the deferred work queue for this stage.- Returns:
- the deferred work queue for this stage
-