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, setModrinthModPackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstallAllModspublic 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)
IModLoaderVersionisModLoaderAlreadyInstalled in interface IModLoaderVersioninstallDir - the dir to check.public void install(@NotNull
@NotNull java.nio.file.Path installDir)
throws java.lang.Exception
IModLoaderVersioninstall in interface IModLoaderVersioninstallDir - folder where the mod loader is going to be installed.java.lang.Exception - if an I/O error occurred.public OptiFineInfo getOptiFineInfo()
AbstractModLoaderVersiongetOptiFineInfo in interface IOptiFineCompatiblegetOptiFineInfo in class AbstractModLoaderVersionpublic java.lang.String name()
IModLoaderVersionname in interface IModLoaderVersion