MCPcopy Create free account
hub / github.com/Teneted/Tenet / loadMods

Method loadMods

src/main/java/net/minecraftforge/fml/ModLoader.java:208–217  ·  view source on GitHub ↗
(final ModWorkManager.DrivenExecutor syncExecutor, final Executor parallelExecutor, final Function<Executor, CompletableFuture<Void>> beforeSidedEvent, final Function<Executor, CompletableFuture<Void>> afterSidedEvent, final Runnable periodicTask)

Source from the content-addressed store, hash-verified

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 {

Callers 2

startModLoadingMethod · 0.80
loadMethod · 0.80

Calls 6

unsafeRunWhenOnMethod · 0.95
loadConfigsMethod · 0.80
acceptMethod · 0.65
getMethod · 0.65
ifPresentMethod · 0.45

Tested by

no test coverage detected