public abstract class AbstractModLoaderVersion extends java.lang.Object implements IModLoaderVersion, ICurseForgeCompatible, IModrinthCompatible, IOptiFineCompatible
Modifier and Type | Field and Description |
---|---|
protected IProgressCallback |
callback |
protected CurseModPackInfo |
curseModPackInfo |
protected java.util.List<CurseFileInfo> |
curseMods |
protected DownloadList |
downloadList |
protected ModFileDeleter |
fileDeleter |
protected java.lang.String |
javaPath |
protected fr.flowarg.flowlogger.ILogger |
logger |
protected java.lang.String |
modLoaderVersion |
protected ModrinthModPack |
modrinthModPack |
protected ModrinthModPackInfo |
modrinthModPackInfo |
protected java.util.List<ModrinthVersionInfo> |
modrinthMods |
protected java.util.List<Mod> |
mods |
protected OptiFineInfo |
optiFineInfo |
protected VanillaVersion |
vanilla |
Constructor and Description |
---|
AbstractModLoaderVersion(java.lang.String modLoaderVersion,
java.util.List<Mod> mods,
java.util.List<CurseFileInfo> curseMods,
java.util.List<ModrinthVersionInfo> modrinthMods,
ModFileDeleter fileDeleter,
CurseModPackInfo curseModPackInfo,
ModrinthModPackInfo modrinthModPackInfo,
OptiFineInfo optiFineInfo) |
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. |
CurseModPackInfo |
getCurseModPackInfo()
Get information about the mod pack to update.
|
java.util.List<CurseFileInfo> |
getCurseMods()
Get all curse mods to update.
|
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.
|
ModrinthModPack |
getModrinthModPack()
Get the modrinth mod pack.
|
ModrinthModPackInfo |
getModrinthModPackInfo()
Get information about the mod pack to update.
|
java.util.List<ModrinthVersionInfo> |
getModrinthMods()
Get all modrinth mods to update.
|
java.util.List<Mod> |
getMods()
Get all processed mods / mods to process.
|
OptiFineInfo |
getOptiFineInfo()
Get information about OptiFine to update.
|
void |
installMods(@NotNull java.nio.file.Path modsDir)
Install all mods in the mods' directory.
|
void |
setAllCurseMods(java.util.List<Mod> allCurseMods)
Define all curse mods to update.
|
void |
setAllModrinthMods(java.util.List<Mod> modrinthMods)
Define all modrinth mods to update.
|
void |
setModrinthModPack(ModrinthModPack modrinthModPack)
Define the modrinth mod pack.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
install, installAllMods, isModLoaderAlreadyInstalled, name
protected final java.util.List<Mod> mods
protected final java.util.List<CurseFileInfo> curseMods
protected final java.util.List<ModrinthVersionInfo> modrinthMods
protected final ModFileDeleter fileDeleter
protected final CurseModPackInfo curseModPackInfo
protected final ModrinthModPackInfo modrinthModPackInfo
protected final OptiFineInfo optiFineInfo
protected java.lang.String modLoaderVersion
protected fr.flowarg.flowlogger.ILogger logger
protected VanillaVersion vanilla
protected DownloadList downloadList
protected IProgressCallback callback
protected java.lang.String javaPath
protected ModrinthModPack modrinthModPack
public AbstractModLoaderVersion(java.lang.String modLoaderVersion, java.util.List<Mod> mods, java.util.List<CurseFileInfo> curseMods, java.util.List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo)
public void attachFlowUpdater(@NotNull @NotNull FlowUpdater flowUpdater)
FlowUpdater
object to mod loaders, allow them to retrieve some information.attachFlowUpdater
in interface IModLoaderVersion
flowUpdater
- flow updater object.public java.util.List<Mod> getMods()
getMods
in interface IModLoaderVersion
public DownloadList getDownloadList()
DownloadList
object.getDownloadList
in interface IModLoaderVersion
public IProgressCallback getCallback()
IProgressCallback
object.getCallback
in interface IModLoaderVersion
public java.util.List<CurseFileInfo> getCurseMods()
getCurseMods
in interface ICurseForgeCompatible
public java.util.List<ModrinthVersionInfo> getModrinthMods()
getModrinthMods
in interface IModrinthCompatible
public void setAllCurseMods(java.util.List<Mod> allCurseMods)
setAllCurseMods
in interface ICurseForgeCompatible
allCurseMods
- curse mods to define.public CurseModPackInfo getCurseModPackInfo()
getCurseModPackInfo
in interface ICurseForgeCompatible
public ModrinthModPackInfo getModrinthModPackInfo()
getModrinthModPackInfo
in interface IModrinthCompatible
public OptiFineInfo getOptiFineInfo()
getOptiFineInfo
in interface IOptiFineCompatible
public void setAllModrinthMods(java.util.List<Mod> modrinthMods)
setAllModrinthMods
in interface IModrinthCompatible
modrinthMods
- modrinth mods to define.public fr.flowarg.flowlogger.ILogger getLogger()
ILogger
object.getLogger
in interface IModLoaderVersion
public java.lang.String getModLoaderVersion()
getModLoaderVersion
in interface IModLoaderVersion
public ModFileDeleter getFileDeleter()
ModFileDeleter
instance;getFileDeleter
in interface IModLoaderVersion
public void setModrinthModPack(ModrinthModPack modrinthModPack)
IModrinthCompatible
setModrinthModPack
in interface IModrinthCompatible
modrinthModPack
- the modrinth mod pack.public ModrinthModPack getModrinthModPack()
IModrinthCompatible
getModrinthModPack
in interface IModrinthCompatible
public void installMods(@NotNull @NotNull java.nio.file.Path modsDir) throws java.lang.Exception
IModLoaderVersion
installMods
in interface IModLoaderVersion
modsDir
- mods directory.java.lang.Exception
- if an I/O error occurred.