Package fr.flowarg.flowupdater.versions
Interface IModLoaderVersion
- All Known Implementing Classes:
AbstractModLoaderVersion,FabricBasedVersion,FabricVersion,ForgeVersion,NeoForgeVersion,QuiltVersion
public interface IModLoaderVersion
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachFlowUpdater(@NotNull FlowUpdater flowUpdater) AttachFlowUpdaterobject to mod loaders, allow them to retrieve some information.Get theIProgressCallbackobject.Get theDownloadListobject.Get the attachedModFileDeleterinstance;fr.flowarg.flowlogger.ILoggerGet theILoggerobject.Get the mod loader version.getMods()Get all processed mods / mods to process.default voidInstall the current mod loader in a specified directory.default voidinstallAllMods(@NotNull Path modsDir) Download mods in the mods' folder.voidinstallMods(@NotNull Path modsDir) Install all mods in the mods' directory.booleanisModLoaderAlreadyInstalled(@NotNull Path installDir) Check if the current mod loader is already installed.name()Get the mod loader name.
-
Method Details
-
attachFlowUpdater
AttachFlowUpdaterobject to mod loaders, allow them to retrieve some information.- Parameters:
flowUpdater- flow updater object.
-
isModLoaderAlreadyInstalled
Check 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.
-
installMods
Install all mods in the mods' directory.- Parameters:
modsDir- mods directory.- Throws:
Exception- if an I/O error occurred.
-
getModLoaderVersion
String getModLoaderVersion()Get the mod loader version.- Returns:
- the mod loader version.
-
getMods
Get all processed mods / mods to process.- Returns:
- all processed mods / mods to process.
-
installAllMods
Download mods in the mods' folder.- Parameters:
modsDir- mods' folder
-
getDownloadList
DownloadList getDownloadList()Get theDownloadListobject.- Returns:
- download info.
-
getLogger
fr.flowarg.flowlogger.ILogger getLogger()Get theILoggerobject.- Returns:
- the logger.
-
getCallback
IProgressCallback getCallback()Get theIProgressCallbackobject.- Returns:
- the progress callback.
-
getFileDeleter
ModFileDeleter getFileDeleter()Get the attachedModFileDeleterinstance;- Returns:
- this mod file deleter;
-
name
String name()Get the mod loader name.- Returns:
- the mod loader name.
-