public interface IModLoaderVersion
Modifier and Type | Interface and Description |
---|---|
static class |
IModLoaderVersion.ModLoaderLauncherEnvironment |
Modifier and Type | Method and Description |
---|---|
void |
attachFlowUpdater(FlowUpdater flowUpdater)
Attach
FlowUpdater object to mod loaders, allow them to retrieve some information. |
boolean |
checkModLoaderEnv(java.nio.file.Path dirToInstall)
Check if the minecraft installation already contains another mod loader installation not corresponding to this version.
|
IProgressCallback |
getCallback()
Get the
IProgressCallback object. |
DownloadInfos |
getDownloadInfos()
Get the
DownloadInfos object. |
fr.flowarg.flowlogger.ILogger |
getLogger()
Get the
ILogger object. |
java.util.List<Mod> |
getMods()
Get all processed mods / mods to process.
|
void |
install(java.nio.file.Path dirToInstall)
Install the current mod loader in a specified directory.
|
default void |
installAllMods(java.nio.file.Path modsDir,
boolean cursePluginLoaded) |
void |
installMods(java.nio.file.Path modsDir,
PluginManager pluginManager)
Install all mods in the mods directory.
|
boolean |
isModLoaderAlreadyInstalled(java.nio.file.Path installDir)
Check if the current mod loader is already installed.
|
IModLoaderVersion.ModLoaderLauncherEnvironment |
prepareModLoaderLauncher(java.nio.file.Path dirToInstall,
java.io.InputStream stream)
Various setup before mod loader's installer launch.
|
void attachFlowUpdater(FlowUpdater flowUpdater)
FlowUpdater
object to mod loaders, allow them to retrieve some information.flowUpdater
- flow updater object.boolean isModLoaderAlreadyInstalled(java.nio.file.Path installDir)
installDir
- the dir to check.void install(java.nio.file.Path dirToInstall) throws java.lang.Exception
dirToInstall
- folder where the mod loader is going to be installed.java.lang.Exception
- if an I/O error occurred.IModLoaderVersion.ModLoaderLauncherEnvironment prepareModLoaderLauncher(java.nio.file.Path dirToInstall, java.io.InputStream stream) throws java.lang.Exception
dirToInstall
- folder where the mod loader is going to be installed.stream
- Installer download stream.IModLoaderVersion.ModLoaderLauncherEnvironment
object.java.lang.Exception
- is an I/O error occurred.void installMods(java.nio.file.Path modsDir, PluginManager pluginManager) throws java.lang.Exception
modsDir
- mods directory.pluginManager
- used to check loaded plugins.java.lang.Exception
- if an I/O error occurred.java.util.List<Mod> getMods()
default void installAllMods(java.nio.file.Path modsDir, boolean cursePluginLoaded)
boolean checkModLoaderEnv(java.nio.file.Path dirToInstall) throws java.lang.Exception
dirToInstall
- Mod loader installation directory.java.lang.Exception
- if an error occurred.DownloadInfos getDownloadInfos()
DownloadInfos
object.fr.flowarg.flowlogger.ILogger getLogger()
ILogger
object.IProgressCallback getCallback()
IProgressCallback
object.