枚举类 ModLoadingStage

java.lang.Object
java.lang.Enum<ModLoadingStage>
net.minecraftforge.fml.ModLoadingStage
所有已实现的接口:
Serializable, Comparable<ModLoadingStage>, Constable

public enum ModLoadingStage extends Enum<ModLoadingStage>
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.

  • 枚举常量详细资料

    • ERROR

      public static final ModLoadingStage ERROR
      Special stage for exceptional situations and error handling.
    • VALIDATE

      public static final ModLoadingStage 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

      public static final ModLoadingStage CONSTRUCT
      Default stage of mod containers after construction.
    • COMMON_SETUP

      public static final ModLoadingStage COMMON_SETUP
      Common (non-side-specific) setup and initialization.
    • SIDED_SETUP

      public static final ModLoadingStage SIDED_SETUP
      Side-specific setup and initialization.
      另请参阅:
      • Dist
    • ENQUEUE_IMC

      public static final ModLoadingStage ENQUEUE_IMC
      Stage for enqueuing InterModComms messages for later processing.
    • PROCESS_IMC

      public static final ModLoadingStage PROCESS_IMC
      Stage for processing received messages though InterModComms.
    • COMPLETE

      public static final ModLoadingStage COMPLETE
      Marks the completion of mod loading for this container.
    • DONE

      public static final ModLoadingStage DONE
      Marks the completion of the full mod loading process.
  • 字段详细资料

  • 构造器详细资料

    • ModLoadingStage

      private ModLoadingStage()
  • 方法详细资料

    • values

      public static ModLoadingStage[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static ModLoadingStage valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • nextState

      ModLoadingStage nextState(Throwable exception)
      返回 the next stage after this stage, or ERROR if the exception is not null
      参数:
      exception - the exception that occurred during this stage, may be null
      返回:
      the next stage after this stage, or ERROR if the exception is not null
    • currentState

      public ModLoadingStage currentState(Throwable exception)
      返回 this stage, or ERROR if the exception is not null
      参数:
      exception - the exception that occurred during this stage, may be null
      返回:
      this stage, or ERROR if the exception is not null
    • getDeferredWorkQueue

      public DeferredWorkQueue getDeferredWorkQueue()
      返回 the deferred work queue for this stage。
      返回:
      the deferred work queue for this stage