Package fr.flowarg.flowupdater.versions
Class AbstractModLoaderVersion
java.lang.Object
fr.flowarg.flowupdater.versions.AbstractModLoaderVersion
- All Implemented Interfaces:
ICurseForgeCompatible,IModrinthCompatible,IOptiFineCompatible,IModLoaderVersion
- Direct Known Subclasses:
FabricBasedVersion,ForgeVersion,NeoForgeVersion
public abstract class AbstractModLoaderVersion
extends Object
implements IModLoaderVersion, ICurseForgeCompatible, IModrinthCompatible, IOptiFineCompatible
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IProgressCallbackprotected final CurseModPackInfoprotected final List<CurseFileInfo>protected DownloadListprotected final ModFileDeleterprotected Stringprotected fr.flowarg.flowlogger.ILoggerprotected Stringprotected ModrinthModPackprotected final ModrinthModPackInfoprotected final List<ModrinthVersionInfo>protected final OptiFineInfoprotected VanillaVersion -
Constructor Summary
ConstructorsConstructorDescriptionAbstractModLoaderVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachFlowUpdater(@NotNull FlowUpdater flowUpdater) AttachFlowUpdaterobject to mod loaders, allow them to retrieve some information.Get theIProgressCallbackobject.Get information about the mod pack to update.Get all curse mods to update.Get theDownloadListobject.Get the attachedModFileDeleterinstance;fr.flowarg.flowlogger.ILoggerGet theILoggerobject.Get the mod loader version.Get the modrinth mod pack.Get information about the mod pack to update.Get all modrinth mods to update.getMods()Get all processed mods / mods to process.Get information about OptiFine to update.voidinstallMods(@NotNull Path modsDir) Install all mods in the mods' directory.voidsetAllCurseMods(List<Mod> allCurseMods) Define all curse mods to update.voidsetAllModrinthMods(List<Mod> modrinthMods) Define all modrinth mods to update.voidsetModrinthModPack(ModrinthModPack modrinthModPack) Define the modrinth mod pack.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.flowarg.flowupdater.versions.IModLoaderVersion
install, installAllMods, isModLoaderAlreadyInstalled, name
-
Field Details
-
mods
-
curseMods
-
modrinthMods
-
fileDeleter
-
curseModPackInfo
-
modrinthModPackInfo
-
optiFineInfo
-
modLoaderVersion
-
logger
protected fr.flowarg.flowlogger.ILogger logger -
vanilla
-
downloadList
-
callback
-
javaPath
-
modrinthModPack
-
-
Constructor Details
-
AbstractModLoaderVersion
public AbstractModLoaderVersion(String modLoaderVersion, List<Mod> mods, List<CurseFileInfo> curseMods, List<ModrinthVersionInfo> modrinthMods, ModFileDeleter fileDeleter, CurseModPackInfo curseModPackInfo, ModrinthModPackInfo modrinthModPackInfo, OptiFineInfo optiFineInfo)
-
-
Method Details
-
attachFlowUpdater
AttachFlowUpdaterobject to mod loaders, allow them to retrieve some information.- Specified by:
attachFlowUpdaterin interfaceIModLoaderVersion- Parameters:
flowUpdater- flow updater object.
-
getMods
Get all processed mods / mods to process.- Specified by:
getModsin interfaceIModLoaderVersion- Returns:
- all processed mods / mods to process.
-
getDownloadList
Get theDownloadListobject.- Specified by:
getDownloadListin interfaceIModLoaderVersion- Returns:
- download info.
-
getCallback
Get theIProgressCallbackobject.- Specified by:
getCallbackin interfaceIModLoaderVersion- Returns:
- the progress callback.
-
getCurseMods
Get all curse mods to update.- Specified by:
getCurseModsin interfaceICurseForgeCompatible- Returns:
- all curse mods.
-
getModrinthMods
Get all modrinth mods to update.- Specified by:
getModrinthModsin interfaceIModrinthCompatible- Returns:
- all modrinth mods.
-
setAllCurseMods
Define all curse mods to update.- Specified by:
setAllCurseModsin interfaceICurseForgeCompatible- Parameters:
allCurseMods- curse mods to define.
-
getCurseModPackInfo
Get information about the mod pack to update.- Specified by:
getCurseModPackInfoin interfaceICurseForgeCompatible- Returns:
- mod pack's information.
-
getModrinthModPackInfo
Get information about the mod pack to update.- Specified by:
getModrinthModPackInfoin interfaceIModrinthCompatible- Returns:
- mod pack's information.
-
getOptiFineInfo
Get information about OptiFine to update.- Specified by:
getOptiFineInfoin interfaceIOptiFineCompatible- Returns:
- OptiFine's information.
-
setAllModrinthMods
Define all modrinth mods to update.- Specified by:
setAllModrinthModsin interfaceIModrinthCompatible- Parameters:
modrinthMods- modrinth mods to define.
-
getLogger
public fr.flowarg.flowlogger.ILogger getLogger()Get theILoggerobject.- Specified by:
getLoggerin interfaceIModLoaderVersion- Returns:
- the logger.
-
getModLoaderVersion
Get the mod loader version.- Specified by:
getModLoaderVersionin interfaceIModLoaderVersion- Returns:
- the mod loader version.
-
getFileDeleter
Get the attachedModFileDeleterinstance;- Specified by:
getFileDeleterin interfaceIModLoaderVersion- Returns:
- this mod file deleter;
-
setModrinthModPack
Description copied from interface:IModrinthCompatibleDefine the modrinth mod pack.- Specified by:
setModrinthModPackin interfaceIModrinthCompatible- Parameters:
modrinthModPack- the modrinth mod pack.
-
getModrinthModPack
Description copied from interface:IModrinthCompatibleGet the modrinth mod pack.- Specified by:
getModrinthModPackin interfaceIModrinthCompatible- Returns:
- the modrinth mod pack.
-
installMods
Description copied from interface:IModLoaderVersionInstall all mods in the mods' directory.- Specified by:
installModsin interfaceIModLoaderVersion- Parameters:
modsDir- mods directory.- Throws:
Exception- if an I/O error occurred.
-