枚举类 ModLoadingStage
- 所有已实现的接口:
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.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量枚举常量说明Common (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. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明currentState
(Throwable exception) 返回 this stage, orERROR
if the exception is notnull
。返回 the deferred work queue for this stage。(专用程序包) ModLoadingStage
返回 the next stage after this stage, orERROR
if the exception is notnull
。static ModLoadingStage
返回带有指定名称的该类的枚举常量。static ModLoadingStage[]
values()
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
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.- 另请参阅:
-
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.
-
-
字段详细资料
-
deferredWorkQueue
-
-
构造器详细资料
-
ModLoadingStage
private ModLoadingStage()
-
-
方法详细资料
-
values
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
nextState
返回 the next stage after this stage, orERROR
if the exception is notnull
。- 参数:
exception
- the exception that occurred during this stage, may benull
- 返回:
- the next stage after this stage, or
ERROR
if the exception is notnull
-
currentState
返回 this stage, orERROR
if the exception is notnull
。- 参数:
exception
- the exception that occurred during this stage, may benull
- 返回:
- this stage, or
ERROR
if the exception is notnull
-
getDeferredWorkQueue
返回 the deferred work queue for this stage。- 返回:
- the deferred work queue for this stage
-