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, waitinstall, installAllMods, isModLoaderAlreadyInstalled, nameprotected 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 IModLoaderVersionflowUpdater - flow updater object.public java.util.List<Mod> getMods()
getMods in interface IModLoaderVersionpublic DownloadList getDownloadList()
DownloadList object.getDownloadList in interface IModLoaderVersionpublic IProgressCallback getCallback()
IProgressCallback object.getCallback in interface IModLoaderVersionpublic java.util.List<CurseFileInfo> getCurseMods()
getCurseMods in interface ICurseForgeCompatiblepublic java.util.List<ModrinthVersionInfo> getModrinthMods()
getModrinthMods in interface IModrinthCompatiblepublic void setAllCurseMods(java.util.List<Mod> allCurseMods)
setAllCurseMods in interface ICurseForgeCompatibleallCurseMods - curse mods to define.public CurseModPackInfo getCurseModPackInfo()
getCurseModPackInfo in interface ICurseForgeCompatiblepublic ModrinthModPackInfo getModrinthModPackInfo()
getModrinthModPackInfo in interface IModrinthCompatiblepublic OptiFineInfo getOptiFineInfo()
getOptiFineInfo in interface IOptiFineCompatiblepublic void setAllModrinthMods(java.util.List<Mod> modrinthMods)
setAllModrinthMods in interface IModrinthCompatiblemodrinthMods - modrinth mods to define.public fr.flowarg.flowlogger.ILogger getLogger()
ILogger object.getLogger in interface IModLoaderVersionpublic java.lang.String getModLoaderVersion()
getModLoaderVersion in interface IModLoaderVersionpublic ModFileDeleter getFileDeleter()
ModFileDeleter instance;getFileDeleter in interface IModLoaderVersionpublic void setModrinthModPack(ModrinthModPack modrinthModPack)
IModrinthCompatiblesetModrinthModPack in interface IModrinthCompatiblemodrinthModPack - the modrinth mod pack.public ModrinthModPack getModrinthModPack()
IModrinthCompatiblegetModrinthModPack in interface IModrinthCompatiblepublic void installMods(@NotNull
@NotNull java.nio.file.Path modsDir)
throws java.lang.Exception
IModLoaderVersioninstallMods in interface IModLoaderVersionmodsDir - mods directory.java.lang.Exception - if an I/O error occurred.