public interface IModLoaderVersion
Modifier and Type | Method and Description |
---|---|
void |
attachFlowUpdater(@NotNull FlowUpdater flowUpdater)
Attach
FlowUpdater object to mod loaders, allow them to retrieve some information. |
IProgressCallback |
getCallback()
Get the
IProgressCallback object. |
DownloadList |
getDownloadList()
Get the
DownloadList object. |
ModFileDeleter |
getFileDeleter()
Get the attached
ModFileDeleter instance; |
fr.flowarg.flowlogger.ILogger |
getLogger()
Get the
ILogger object. |
java.lang.String |
getModLoaderVersion()
Get the mod loader version.
|
java.util.List<Mod> |
getMods()
Get all processed mods / mods to process.
|
default void |
install(@NotNull java.nio.file.Path installDir)
Install the current mod loader in a specified directory.
|
default void |
installAllMods(@NotNull java.nio.file.Path modsDir)
Download mods in the mods' folder.
|
void |
installMods(@NotNull java.nio.file.Path modsDir)
Install all mods in the mods' directory.
|
boolean |
isModLoaderAlreadyInstalled(@NotNull java.nio.file.Path installDir)
Check if the current mod loader is already installed.
|
java.lang.String |
name()
Get the mod loader name.
|
void attachFlowUpdater(@NotNull @NotNull FlowUpdater flowUpdater)
FlowUpdater
object to mod loaders, allow them to retrieve some information.flowUpdater
- flow updater object.boolean isModLoaderAlreadyInstalled(@NotNull @NotNull java.nio.file.Path installDir)
installDir
- the dir to check.default 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.void installMods(@NotNull @NotNull java.nio.file.Path modsDir) throws java.lang.Exception
modsDir
- mods directory.java.lang.Exception
- if an I/O error occurred.java.lang.String getModLoaderVersion()
java.util.List<Mod> getMods()
default void installAllMods(@NotNull @NotNull java.nio.file.Path modsDir)
modsDir
- mods' folderDownloadList getDownloadList()
DownloadList
object.fr.flowarg.flowlogger.ILogger getLogger()
ILogger
object.IProgressCallback getCallback()
IProgressCallback
object.ModFileDeleter getFileDeleter()
ModFileDeleter
instance;java.lang.String name()