Class FabricBasedVersion
java.lang.Object
fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
fr.flowarg.flowupdater.versions.fabric.FabricBasedVersion
- All Implemented Interfaces:
ICurseForgeCompatible,IModrinthCompatible,IOptiFineCompatible,IModLoaderVersion
- Direct Known Subclasses:
FabricVersion,QuiltVersion
-
Field Summary
FieldsFields inherited from class fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
callback, curseModPackInfo, curseMods, downloadList, fileDeleter, javaPath, logger, modLoaderVersion, modrinthModPack, modrinthModPackInfo, modrinthMods, mods, optiFineInfo, vanilla -
Constructor Summary
ConstructorsConstructorDescriptionFabricBasedVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo, String metaApi) -
Method Summary
Modifier and TypeMethodDescriptiongetSha1FromLibrary(@NotNull com.google.gson.JsonObject library, String builtJarUrl) voidInstall the current mod loader in a specified directory.booleanisModLoaderAlreadyInstalled(@NotNull Path installDir) Check if the current mod loader is already installed.protected List<ParsedLibrary>parseLibraries(Path versionJsonFile, Path installDir) Methods inherited from class fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
attachFlowUpdater, getCallback, getCurseModPackInfo, getCurseMods, getDownloadList, getFileDeleter, getLogger, getModLoaderVersion, getModrinthModPack, getModrinthModPackInfo, getModrinthMods, getMods, getOptiFineInfo, installMods, setAllCurseMods, setAllModrinthMods, setModrinthModPackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.flowarg.flowupdater.versions.IModLoaderVersion
installAllMods, name
-
Field Details
-
metaApi
-
versionId
-
-
Constructor Details
-
FabricBasedVersion
public FabricBasedVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo, String metaApi)
-
-
Method Details
-
isModLoaderAlreadyInstalled
Description copied from interface:IModLoaderVersionCheck if the current mod loader is already installed.- Parameters:
installDir- the dir to check.- Returns:
- if the current mod loader is already installed.
-
install
Install the current mod loader in a specified directory.- Parameters:
installDir- folder where the mod loader is going to be installed.- Throws:
Exception- if an I/O error occurred.
-
parseLibraries
protected List<ParsedLibrary> parseLibraries(Path versionJsonFile, Path installDir) throws Exception - Throws:
Exception
-
getSha1FromLibrary
-