Package net.minecraftforge.fml
Interface IModStateTransition
- All Known Implementing Classes:
NoopTransition
,ParallelTransition
,SerialTransition
public interface IModStateTransition
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
IModStateTransition.EventGenerator<T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
IModStateTransition.EventGenerator<T>addCompletableFutureTaskForModDispatch(Executor syncExecutor, Executor parallelExecutor, List<CompletableFuture<List<Throwable>>> completeableFutures, IModStateTransition.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage,Throwable,ModLoadingStage> nextState, IModStateTransition.EventGenerator<T> nextGenerator)
default <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
CompletableFuture<List<Throwable>>build(Executor syncExecutor, Executor parallelExecutor, Function<Executor,CompletableFuture<Void>> preSyncTask, Function<Executor,CompletableFuture<Void>> postSyncTask)
static IModStateTransition
default BiFunction<ModLoadingStage,Throwable,ModLoadingStage>
BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>>
BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>>
-
Method Details
-
buildNoopTransition
-
build
default <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> CompletableFuture<List<Throwable>> build(Executor syncExecutor, Executor parallelExecutor, Function<Executor,CompletableFuture<Void>> preSyncTask, Function<Executor,CompletableFuture<Void>> postSyncTask) -
nextModLoadingStage
-
addCompletableFutureTaskForModDispatch
private <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> IModStateTransition.EventGenerator<T> addCompletableFutureTaskForModDispatch(Executor syncExecutor, Executor parallelExecutor, List<CompletableFuture<List<Throwable>>> completeableFutures, IModStateTransition.EventGenerator<T> eventGenerator, BiFunction<ModLoadingStage,Throwable,ModLoadingStage> nextState, IModStateTransition.EventGenerator<T> nextGenerator) -
eventFunctionStream
Supplier<Stream<IModStateTransition.EventGenerator<?>>> eventFunctionStream() -
threadSelector
ThreadSelector threadSelector() -
finalActivityGenerator
BiFunction<Executor,CompletableFuture<List<Throwable>>,CompletableFuture<List<Throwable>>> finalActivityGenerator() -
preDispatchHook
BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> preDispatchHook() -
postDispatchHook
BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> postDispatchHook()
-