Class ForgeVersion
java.lang.Object
fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
fr.flowarg.flowupdater.versions.forge.ForgeVersion
- All Implemented Interfaces:
ICurseForgeCompatible,IModrinthCompatible,IOptiFineCompatible,IModLoaderVersion
-
Field Summary
Fields inherited from class fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
callback, curseModPackInfo, curseMods, downloadList, fileDeleter, javaPath, logger, modLoaderVersion, modrinthModPack, modrinthModPackInfo, modrinthMods, mods, vanilla -
Constructor Summary
ConstructorsConstructorDescriptionForgeVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo) -
Method Summary
Modifier and TypeMethodDescriptionGet information about OptiFine to update.voidInstall the current mod loader in a specified directory.booleanisModLoaderAlreadyInstalled(@NotNull Path installDir) Check if the current mod loader is already installed.name()Get the mod loader name.Methods inherited from class fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
attachFlowUpdater, getCallback, getCurseModPackInfo, getCurseMods, getDownloadList, getFileDeleter, getLogger, getModLoaderVersion, getModrinthModPack, getModrinthModPackInfo, getModrinthMods, getMods, 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
-
Constructor Details
-
ForgeVersion
public ForgeVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo)
-
-
Method Details
-
isModLoaderAlreadyInstalled
Description copied from interface:IModLoaderVersionCheck if the current mod loader is already installed.- Specified by:
isModLoaderAlreadyInstalledin interfaceIModLoaderVersion- Parameters:
installDir- the dir to check.- Returns:
- if the current mod loader is already installed.
-
install
Description copied from interface:IModLoaderVersionInstall the current mod loader in a specified directory.- Specified by:
installin interfaceIModLoaderVersion- Parameters:
installDir- folder where the mod loader is going to be installed.- Throws:
Exception- if an I/O error occurred.
-
getOptiFineInfo
Description copied from class:AbstractModLoaderVersionGet information about OptiFine to update.- Specified by:
getOptiFineInfoin interfaceIOptiFineCompatible- Overrides:
getOptiFineInfoin classAbstractModLoaderVersion- Returns:
- OptiFine's information.
-
name
Description copied from interface:IModLoaderVersionGet the mod loader name.- Specified by:
namein interfaceIModLoaderVersion- Returns:
- the mod loader name.
-