public abstract class FabricBasedVersion extends AbstractModLoaderVersion
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
metaApi |
protected java.lang.String |
versionId |
callback, curseModPackInfo, curseMods, downloadList, fileDeleter, javaPath, logger, modLoaderVersion, modrinthModPack, modrinthModPackInfo, modrinthMods, mods, optiFineInfo, vanilla
Constructor and Description |
---|
FabricBasedVersion(java.lang.String modLoaderVersion,
java.util.List<Mod> mods,
java.util.List<CurseFileInfo> curseMods,
java.util.List<ModrinthVersionInfo> modrinthMods,
ModFileDeleter fileDeleter,
CurseModPackInfo curseModPackInfo,
ModrinthModPackInfo modrinthModPackInfo,
OptiFineInfo optiFineInfo,
java.lang.String metaApi) |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.Callable<java.lang.String> |
getSha1FromLibrary(@NotNull com.google.gson.JsonObject library,
java.lang.String builtJarUrl) |
void |
install(@NotNull java.nio.file.Path installDir)
Install the current mod loader in a specified directory.
|
boolean |
isModLoaderAlreadyInstalled(@NotNull java.nio.file.Path installDir)
Check if the current mod loader is already installed.
|
protected java.util.List<ParsedLibrary> |
parseLibraries(java.nio.file.Path versionJsonFile,
java.nio.file.Path installDir) |
attachFlowUpdater, getCallback, getCurseModPackInfo, getCurseMods, getDownloadList, getFileDeleter, getLogger, getModLoaderVersion, getModrinthModPack, getModrinthModPackInfo, getModrinthMods, getMods, getOptiFineInfo, installMods, setAllCurseMods, setAllModrinthMods, setModrinthModPack
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
installAllMods, name
protected final java.lang.String metaApi
protected java.lang.String versionId
public FabricBasedVersion(java.lang.String modLoaderVersion, java.util.List<Mod> mods, java.util.List<CurseFileInfo> curseMods, java.util.List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo, java.lang.String metaApi)
public boolean isModLoaderAlreadyInstalled(@NotNull @NotNull java.nio.file.Path installDir)
IModLoaderVersion
installDir
- the dir to check.public void install(@NotNull @NotNull java.nio.file.Path installDir) throws java.lang.Exception
installDir
- folder where the mod loader is going to be installed.java.lang.Exception
- if an I/O error occurred.protected java.util.List<ParsedLibrary> parseLibraries(java.nio.file.Path versionJsonFile, java.nio.file.Path installDir) throws java.lang.Exception
java.lang.Exception
protected java.util.concurrent.Callable<java.lang.String> getSha1FromLibrary(@NotNull @NotNull com.google.gson.JsonObject library, java.lang.String builtJarUrl)