public class FabricVersion extends java.lang.Object implements ICurseFeaturesUser, IModLoaderVersion
Modifier and Type | Class and Description |
---|---|
static class |
FabricVersion.FabricVersionBuilder |
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.
|
java.util.List<java.lang.Object> |
getAllCurseMods() |
IProgressCallback |
getCallback()
Get the
IProgressCallback object. |
java.util.List<CurseFileInfos> |
getCurseMods()
Get all curse mods to update.
|
DownloadInfos |
getDownloadInfos()
Get the
DownloadInfos object. |
java.lang.String |
getFabricVersion() |
ModFileDeleter |
getFileDeleter() |
java.net.URL |
getInstallerUrl() |
fr.flowarg.flowlogger.ILogger |
getLogger()
Get the
ILogger object. |
CurseModPackInfo |
getModPackInfo()
Get information about the mod pack to update.
|
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.
|
void |
installMods(java.nio.file.Path modsDir,
PluginManager pluginManager)
Install all mods in the mods directory.
|
boolean |
isCompatible() |
boolean |
isModLoaderAlreadyInstalled(java.nio.file.Path installDir)
Check if the current mod loader is already installed.
|
fr.flowarg.flowupdater.versions.FabricVersion.FabricLauncherEnvironment |
prepareModLoaderLauncher(java.nio.file.Path dirToInstall,
java.io.InputStream stream)
Various setup before mod loader's installer launch.
|
void |
setAllCurseMods(java.util.List<java.lang.Object> allCurseMods)
Define all curse mods to update.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
installAllMods
public boolean isModLoaderAlreadyInstalled(java.nio.file.Path installDir)
isModLoaderAlreadyInstalled
in interface IModLoaderVersion
installDir
- the dir to check.public fr.flowarg.flowupdater.versions.FabricVersion.FabricLauncherEnvironment prepareModLoaderLauncher(java.nio.file.Path dirToInstall, java.io.InputStream stream) throws java.io.IOException
prepareModLoaderLauncher
in interface IModLoaderVersion
dirToInstall
- folder where the mod loader is going to be installed.stream
- Installer download stream.IModLoaderVersion.ModLoaderLauncherEnvironment
object.java.io.IOException
public void install(java.nio.file.Path dirToInstall) throws java.lang.Exception
install
in interface IModLoaderVersion
dirToInstall
- folder where the mod loader is going to be installed.java.lang.Exception
- if an I/O error occurred.public boolean checkModLoaderEnv(java.nio.file.Path dirToInstall) throws java.lang.Exception
checkModLoaderEnv
in interface IModLoaderVersion
dirToInstall
- Mod loader installation directory.java.lang.Exception
- if an error occurred.public boolean isCompatible()
public void installMods(java.nio.file.Path modsDir, PluginManager pluginManager) throws java.lang.Exception
installMods
in interface IModLoaderVersion
modsDir
- mods directory.pluginManager
- used to check loaded plugins.java.lang.Exception
- if an I/O error occurred.public ModFileDeleter getFileDeleter()
public void attachFlowUpdater(FlowUpdater flowUpdater)
FlowUpdater
object to mod loaders, allow them to retrieve some information.attachFlowUpdater
in interface IModLoaderVersion
flowUpdater
- flow updater object.public DownloadInfos getDownloadInfos()
DownloadInfos
object.getDownloadInfos
in interface IModLoaderVersion
public IProgressCallback getCallback()
IProgressCallback
object.getCallback
in interface IModLoaderVersion
public java.util.List<Mod> getMods()
getMods
in interface IModLoaderVersion
public fr.flowarg.flowlogger.ILogger getLogger()
ILogger
object.getLogger
in interface IModLoaderVersion
public java.lang.String getFabricVersion()
public java.net.URL getInstallerUrl()
public java.util.List<java.lang.Object> getAllCurseMods()
public void setAllCurseMods(java.util.List<java.lang.Object> allCurseMods)
setAllCurseMods
in interface ICurseFeaturesUser
allCurseMods
- curse mods to define.public java.util.List<CurseFileInfos> getCurseMods()
getCurseMods
in interface ICurseFeaturesUser
public CurseModPackInfo getModPackInfo()
getModPackInfo
in interface ICurseFeaturesUser