(final ModWorkManager.DrivenExecutor syncExecutor, final Executor parallelExecutor, final Function<Executor, CompletableFuture<Void>> beforeSidedEvent, final Function<Executor, CompletableFuture<Void>> afterSidedEvent, final Runnable periodicTask)
| 206 | } |
| 207 | |
| 208 | public void loadMods(final ModWorkManager.DrivenExecutor syncExecutor, final Executor parallelExecutor, final Function<Executor, CompletableFuture<Void>> beforeSidedEvent, final Function<Executor, CompletableFuture<Void>> afterSidedEvent, final Runnable periodicTask) { |
| 209 | statusConsumer.ifPresent(c->c.accept("Loading mod config")); |
| 210 | DistExecutor.unsafeRunWhenOn(Dist.CLIENT, ()->()-> ConfigTracker.INSTANCE.loadConfigs(ModConfig.Type.CLIENT, FMLPaths.CONFIGDIR.get())); |
| 211 | ConfigTracker.INSTANCE.loadConfigs(ModConfig.Type.COMMON, FMLPaths.CONFIGDIR.get()); |
| 212 | statusConsumer.ifPresent(c->c.accept("Mod setup: SETUP")); |
| 213 | dispatchAndHandleError(ModLoadingStage.COMMON_SETUP, syncExecutor, parallelExecutor, periodicTask); |
| 214 | statusConsumer.ifPresent(c->c.accept("Mod setup: SIDED SETUP")); |
| 215 | dispatchAndHandleError(ModLoadingStage.SIDED_SETUP, syncExecutor, parallelExecutor, periodicTask, beforeSidedEvent, afterSidedEvent); |
| 216 | statusConsumer.ifPresent(c->c.accept("Mod setup complete")); |
| 217 | } |
| 218 | |
| 219 | public void finishMods(final ModWorkManager.DrivenExecutor syncExecutor, final Executor parallelExecutor, final Runnable periodicTask) |
| 220 | { |
no test coverage detected