Uses of Class
net.minecraftforge.fml.ModList
-
Uses of ModList in net.minecraftforge.fml
Modifier and TypeFieldDescriptionprivate static ModList
ModList.INSTANCE
private ModList
ModLoader.modList
Modifier and TypeFieldDescriptionModLoadingState.inlineRunnable
The field for theinlineRunnable
record component.ModLoadingState.message
The field for themessage
record component.private final ToIntFunction<ModList>
ModLoadingState.size
The field for thesize
record component.Modifier and TypeMethodDescriptionIModLoadingState.inlineRunnable()
Returns an optional runnable, which runs before starting the transition from this state to the next.ModLoadingState.inlineRunnable()
Returns the value of theinlineRunnable
record component.IModLoadingState.message()
Returns a function returning a human-friendly message for this state.ModLoadingState.message()
Returns the value of themessage
record component.IModLoadingState.size()
ModLoadingState.size()
Returns the value of thesize
record component.Modifier and TypeMethodDescriptionprivate void
ModLoader.handleInlineTransition
(Consumer<ModList> transition, IModLoadingState state, ModWorkManager.DrivenExecutor syncExecutor, Runnable ticker) 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.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.ModLoadingState
(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.ModLoadingState
(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.