Uses of Enum Class
net.minecraftforge.fml.ModLoadingPhase
-
Uses of ModLoadingPhase in net.minecraftforge.fml
Modifier and TypeFieldDescriptionprivate final ModLoadingPhase
ModLoadingState.phase
The field for thephase
record component.Modifier and TypeFieldDescriptionprivate final EnumMap<ModLoadingPhase,
List<IModLoadingState>> ModStateManager.stateMap
Modifier and TypeMethodDescriptionIModLoadingState.phase()
Returns the mod loading phase this state belongs to.ModLoadingState.phase()
Returns the value of thephase
record component.static ModLoadingPhase
Returns the enum constant of this class with the specified name.static ModLoadingPhase[]
ModLoadingPhase.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic ModLoadingState
ModLoadingState.empty
(String name, String previous, ModLoadingPhase phase) Returns an empty mod loading state.ModStateManager.getStates
(ModLoadingPhase phase) static ModLoadingState
ModLoadingState.withInline
(String name, String previous, ModLoadingPhase phase, Consumer<ModList> inline) Returns a mod loading state with an inline runnable and a default human-friendly message ofProcessing work [name]
.static ModLoadingState
ModLoadingState.withTransition
(String name, String previous, Function<ModList, String> message, ModLoadingPhase phase, IModStateTransition transition) Returns a mod loading state with state transition information and a custom human-friendly message function.static ModLoadingState
ModLoadingState.withTransition
(String name, String previous, ModLoadingPhase phase, IModStateTransition transition) Returns a mod loading state with state transition information and a default human-friendly message ofProcessing transition [name]
.ModifierConstructorDescriptionModLoadingState
(String name, String previous, Function<ModList, String> message, ToIntFunction<ModList> size, ModLoadingPhase phase, Optional<Consumer<ModList>> inlineRunnable, Optional<IModStateTransition> transition) Creates an instance of aModLoadingState
record class.