Enum Class ModLoadingPhase

java.lang.Object
java.lang.Enum<ModLoadingPhase>
net.minecraftforge.fml.ModLoadingPhase
All Implemented Interfaces:
Serializable, Comparable<ModLoadingPhase>, Constable

public enum ModLoadingPhase extends Enum<ModLoadingPhase>
Phases of mod loading, for grouping mod loading states.
  • Enum Constant Details

    • ERROR

      public static final ModLoadingPhase ERROR
      Special phase for exceptional situations and error handling, where mod loading cannot continue normally.

      There is conventionally only one state with this phase.

    • GATHER

      public static final ModLoadingPhase GATHER
      Phase for discovering and gathering mods for loading.
    • LOAD

      public static final ModLoadingPhase LOAD
      Phase for the loading of mods found from mod discovery.
      See Also:
    • COMPLETE

      public static final ModLoadingPhase COMPLETE
      Phase after mod loading has completed, for post-loading tasks.
      See Also:
    • DONE

      public static final ModLoadingPhase DONE
      Marker phase for the last state in the full mod loading process.
  • Constructor Details

    • ModLoadingPhase

      private ModLoadingPhase()
  • Method Details

    • values

      public static ModLoadingPhase[] 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

      public static ModLoadingPhase valueOf(String name)
      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 name
      NullPointerException - if the argument is null