Package net.minecraftforge.fml.client
Class ClientModLoader
- java.lang.Object
-
- net.minecraftforge.fml.client.ClientModLoader
-
public class ClientModLoader extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ClientModLoader.SpacedRunnable
-
Field Summary
Fields Modifier and Type Field Description private static EarlyLoaderGUI
earlyLoaderGUI
private static LoadingFailedException
error
private static boolean
loading
private static boolean
loadingComplete
private static org.apache.logging.log4j.Logger
LOGGER
private static Minecraft
mc
-
Constructor Summary
Constructors Constructor Description ClientModLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
begin(Minecraft minecraft, ResourcePackList defaultResourcePacks, IReloadableResourceManager mcResourceManager, DownloadingPackFinder metadataSerializer)
private static ResourcePackLoader.IPackInfoFinder
buildPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo> packSetter)
static VersionChecker.Status
checkForUpdates()
private static void
clientPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo> packSetter, java.util.function.Consumer<ResourcePackInfo> consumer, ResourcePackInfo.IFactory factory)
static boolean
completeModLoading()
private static java.lang.Runnable
createRunnableWithCatch(java.lang.Runnable r)
private static void
finishModLoading(ModWorkManager.DrivenExecutor syncExecutor, java.util.concurrent.Executor parallelExecutor)
static boolean
isLoading()
private static java.util.concurrent.CompletableFuture<java.lang.Void>
onResourceReload(IFutureReloadListener.IStage stage, IResourceManager resourceManager, IProfiler prepareProfiler, IProfiler executeProfiler, java.util.concurrent.Executor asyncExecutor, java.util.concurrent.Executor syncExecutor)
private static void
postSidedRunnable()
private static void
preSidedRunnable()
static void
renderProgressText()
private static void
startModLoading(ModWorkManager.DrivenExecutor syncExecutor, java.util.concurrent.Executor parallelExecutor)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
loading
private static boolean loading
-
mc
private static Minecraft mc
-
loadingComplete
private static boolean loadingComplete
-
error
private static LoadingFailedException error
-
earlyLoaderGUI
private static EarlyLoaderGUI earlyLoaderGUI
-
-
Method Detail
-
begin
public static void begin(Minecraft minecraft, ResourcePackList defaultResourcePacks, IReloadableResourceManager mcResourceManager, DownloadingPackFinder metadataSerializer)
-
onResourceReload
private static java.util.concurrent.CompletableFuture<java.lang.Void> onResourceReload(IFutureReloadListener.IStage stage, IResourceManager resourceManager, IProfiler prepareProfiler, IProfiler executeProfiler, java.util.concurrent.Executor asyncExecutor, java.util.concurrent.Executor syncExecutor)
-
createRunnableWithCatch
private static java.lang.Runnable createRunnableWithCatch(java.lang.Runnable r)
-
startModLoading
private static void startModLoading(ModWorkManager.DrivenExecutor syncExecutor, java.util.concurrent.Executor parallelExecutor)
-
postSidedRunnable
private static void postSidedRunnable()
-
preSidedRunnable
private static void preSidedRunnable()
-
finishModLoading
private static void finishModLoading(ModWorkManager.DrivenExecutor syncExecutor, java.util.concurrent.Executor parallelExecutor)
-
checkForUpdates
public static VersionChecker.Status checkForUpdates()
-
completeModLoading
public static boolean completeModLoading()
-
renderProgressText
public static void renderProgressText()
-
isLoading
public static boolean isLoading()
-
buildPackFinder
private static ResourcePackLoader.IPackInfoFinder buildPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo> packSetter)
-
clientPackFinder
private static void clientPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo> packSetter, java.util.function.Consumer<ResourcePackInfo> consumer, ResourcePackInfo.IFactory factory)
-
-