Package net.minecraftforge.fml
Enum Class ModLoadingStage
- All Implemented Interfaces:
Serializable
,Comparable<ModLoadingStage>
,Constable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
ModLoadingStage.EventGenerator<T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
(package private) static enum
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionprivate DeferredWorkQueue
private final Supplier<Stream<ModLoadingStage.EventGenerator<?>>>
private final BiFunction<Executor,
CompletableFuture<List<Throwable>>, CompletableFuture<List<Throwable>>> private final Optional<Class<? extends ParallelDispatchEvent>>
private final BiFunction<Executor,
? extends ModLoadingStage.EventGenerator<?>, CompletableFuture<List<Throwable>>> private final BiFunction<Executor,
? extends ModLoadingStage.EventGenerator<?>, CompletableFuture<List<Throwable>>> private final ModLoadingStage.ThreadSelector
-
Constructor Summary
ModifierConstructorDescriptionprivate
private
ModLoadingStage
(Class<? extends ParallelDispatchEvent> parallelClass) private
ModLoadingStage
(Supplier<Stream<ModLoadingStage.EventGenerator<?>>> eventStream) private
ModLoadingStage
(Supplier<Stream<ModLoadingStage.EventGenerator<?>>> eventStream, BiFunction<Executor, ? extends ModLoadingStage.EventGenerator<T>, CompletableFuture<List<Throwable>>> preDispatchHook, BiFunction<Executor, ? extends ModLoadingStage.EventGenerator<T>, CompletableFuture<List<Throwable>>> postDispatchHook, BiFunction<Executor, CompletableFuture<List<Throwable>>, CompletableFuture<List<Throwable>>> finalActivityGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
ModLoadingStage.EventGenerator<T>addCompletableFutureTaskForModDispatch
(Executor syncExecutor, Executor parallelExecutor, List<CompletableFuture<List<Throwable>>> completeableFutures, ModLoadingStage.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage, Throwable, ModLoadingStage> nextState, ModLoadingStage.EventGenerator<T> nextGenerator) <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
CompletableFuture<List<Throwable>>buildTransition
(Executor syncExecutor, Executor parallelExecutor) <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
CompletableFuture<List<Throwable>>buildTransition
(Executor syncExecutor, Executor parallelExecutor, Function<Executor, CompletableFuture<Void>> preSyncTask, Function<Executor, CompletableFuture<Void>> postSyncTask) (package private) ModLoadingStage
currentState
(Throwable exception) Optional<Class<? extends ParallelDispatchEvent>>
(package private) ModLoadingStage
static ModLoadingStage
Returns the enum constant of this class with the specified name.static ModLoadingStage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
-
VALIDATE
-
CONSTRUCT
-
CREATE_REGISTRIES
-
LOAD_REGISTRIES
-
COMMON_SETUP
-
SIDED_SETUP
-
ENQUEUE_IMC
-
PROCESS_IMC
-
COMPLETE
-
DONE
-
-
Field Details
-
eventFunctionStream
-
parallelEventClass
-
threadSelector
-
finalActivityGenerator
private final BiFunction<Executor,CompletableFuture<List<Throwable>>, finalActivityGeneratorCompletableFuture<List<Throwable>>> -
preDispatchHook
private final BiFunction<Executor,? extends ModLoadingStage.EventGenerator<?>, preDispatchHookCompletableFuture<List<Throwable>>> -
postDispatchHook
private final BiFunction<Executor,? extends ModLoadingStage.EventGenerator<?>, postDispatchHookCompletableFuture<List<Throwable>>> -
deferredWorkQueue
-
-
Constructor Details
-
ModLoadingStage
-
ModLoadingStage
-
ModLoadingStage
private ModLoadingStage(Supplier<Stream<ModLoadingStage.EventGenerator<?>>> eventStream, BiFunction<Executor, ? extends ModLoadingStage.EventGenerator<T>, CompletableFuture<List<Throwable>>> preDispatchHook, BiFunction<Executor, ? extends ModLoadingStage.EventGenerator<T>, CompletableFuture<List<Throwable>>> postDispatchHook, BiFunction<Executor, CompletableFuture<List<Throwable>>, CompletableFuture<List<Throwable>>> finalActivityGenerator) -
ModLoadingStage
private ModLoadingStage()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
buildTransition
public <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> CompletableFuture<List<Throwable>> buildTransition(Executor syncExecutor, Executor parallelExecutor) -
buildTransition
public <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> CompletableFuture<List<Throwable>> buildTransition(Executor syncExecutor, Executor parallelExecutor, Function<Executor, CompletableFuture<Void>> preSyncTask, Function<Executor, CompletableFuture<Void>> postSyncTask) -
addCompletableFutureTaskForModDispatch
private <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> ModLoadingStage.EventGenerator<T> addCompletableFutureTaskForModDispatch(Executor syncExecutor, Executor parallelExecutor, List<CompletableFuture<List<Throwable>>> completeableFutures, ModLoadingStage.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage, Throwable, ModLoadingStage> nextState, ModLoadingStage.EventGenerator<T> nextGenerator) -
nextState
-
currentState
-
getParallelEventClass
-
getDeferredWorkQueue
-