public class ClientModLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static EarlyLoaderGUI |
earlyLoaderGUI |
private static LoadingFailedException |
error |
private static boolean |
loading |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static Minecraft |
mc |
Constructor and Description |
---|
ClientModLoader() |
Modifier and Type | Method and Description |
---|---|
static void |
begin(Minecraft minecraft,
ResourcePackList<ClientResourcePackInfo> defaultResourcePacks,
IReloadableResourceManager mcResourceManager,
DownloadingPackFinder metadataSerializer) |
private static <T extends ResourcePackInfo> |
buildPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks,
java.util.function.BiConsumer<? super ModFileResourcePack,? super T> packSetter) |
static VersionChecker.Status |
checkForUpdates() |
private static <T extends ResourcePackInfo> |
clientPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks,
java.util.function.BiConsumer<? super ModFileResourcePack,? super T> packSetter,
java.util.Map<java.lang.String,T> packList,
ResourcePackInfo.IFactory<? extends T> factory) |
static boolean |
completeModLoading() |
private static java.lang.Runnable |
createRunnableWithCatch(java.lang.Runnable r) |
private static void |
finishModLoading(java.util.concurrent.Executor executor) |
static boolean |
isLoading() |
private static java.util.concurrent.CompletableFuture<java.lang.Void> |
onreload(IFutureReloadListener.IStage stage,
IResourceManager resourceManager,
IProfiler prepareProfiler,
IProfiler executeProfiler,
java.util.concurrent.Executor asyncExecutor,
java.util.concurrent.Executor syncExecutor) |
private static void |
postSidedRunnable(java.util.function.Consumer<java.util.function.Supplier<net.minecraftforge.eventbus.api.Event>> perModContainerEventProcessor) |
private static void |
preSidedRunnable(java.util.function.Consumer<java.util.function.Supplier<net.minecraftforge.eventbus.api.Event>> perModContainerEventProcessor) |
static void |
renderProgressText() |
private static void |
startModLoading(java.util.concurrent.Executor executor) |
private static final org.apache.logging.log4j.Logger LOGGER
private static boolean loading
private static Minecraft mc
private static LoadingFailedException error
private static EarlyLoaderGUI earlyLoaderGUI
public static void begin(Minecraft minecraft, ResourcePackList<ClientResourcePackInfo> defaultResourcePacks, IReloadableResourceManager mcResourceManager, DownloadingPackFinder metadataSerializer)
private static java.util.concurrent.CompletableFuture<java.lang.Void> onreload(IFutureReloadListener.IStage stage, IResourceManager resourceManager, IProfiler prepareProfiler, IProfiler executeProfiler, java.util.concurrent.Executor asyncExecutor, java.util.concurrent.Executor syncExecutor)
private static java.lang.Runnable createRunnableWithCatch(java.lang.Runnable r)
private static void startModLoading(java.util.concurrent.Executor executor)
private static void postSidedRunnable(java.util.function.Consumer<java.util.function.Supplier<net.minecraftforge.eventbus.api.Event>> perModContainerEventProcessor)
private static void preSidedRunnable(java.util.function.Consumer<java.util.function.Supplier<net.minecraftforge.eventbus.api.Event>> perModContainerEventProcessor)
private static void finishModLoading(java.util.concurrent.Executor executor)
public static VersionChecker.Status checkForUpdates()
public static boolean completeModLoading()
public static void renderProgressText()
public static boolean isLoading()
private static <T extends ResourcePackInfo> ResourcePackLoader.IPackInfoFinder<T> buildPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,? super T> packSetter)
private static <T extends ResourcePackInfo> void clientPackFinder(java.util.Map<ModFile,? extends ModFileResourcePack> modResourcePacks, java.util.function.BiConsumer<? super ModFileResourcePack,? super T> packSetter, java.util.Map<java.lang.String,T> packList, ResourcePackInfo.IFactory<? extends T> factory)