public class ForgeVersion extends AbstractModLoaderVersion implements IOptiFineCompatible
callback, curseModPackInfo, curseMods, downloadList, fileDeleter, javaPath, logger, modLoaderVersion, modrinthModPack, modrinthModPackInfo, modrinthMods, mods, vanilla
Constructor and Description |
---|
ForgeVersion(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 |
---|---|
OptiFineInfo |
getOptiFineInfo()
Get information about OptiFine to update.
|
void |
install(@NotNull java.nio.file.Path installDir)
Install the current mod loader in a specified 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.
|
attachFlowUpdater, getCallback, getCurseModPackInfo, getCurseMods, getDownloadList, getFileDeleter, getLogger, getModLoaderVersion, getModrinthModPack, getModrinthModPackInfo, getModrinthMods, getMods, installMods, setAllCurseMods, setAllModrinthMods, setModrinthModPack
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
installAllMods
public ForgeVersion(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 boolean isModLoaderAlreadyInstalled(@NotNull @NotNull java.nio.file.Path installDir)
IModLoaderVersion
isModLoaderAlreadyInstalled
in interface IModLoaderVersion
installDir
- the dir to check.public void install(@NotNull @NotNull java.nio.file.Path installDir) throws java.lang.Exception
IModLoaderVersion
install
in interface IModLoaderVersion
installDir
- folder where the mod loader is going to be installed.java.lang.Exception
- if an I/O error occurred.public OptiFineInfo getOptiFineInfo()
AbstractModLoaderVersion
getOptiFineInfo
in interface IOptiFineCompatible
getOptiFineInfo
in class AbstractModLoaderVersion
public java.lang.String name()
IModLoaderVersion
name
in interface IModLoaderVersion