public class ModdedGameConfiguration extends GameConfiguration
Extends GameConfiguration by adding mod loader information,
mod loader version, and a list of mods to be loaded.
| Constructor and Description |
|---|
ModdedGameConfiguration(java.nio.file.Path gameDir,
java.lang.String mcVersion,
ModLoader modLoader,
java.lang.String modLoaderVersion,
java.util.List<fr.flowarg.flowupdater.download.json.Mod> mods,
java.util.List<java.lang.String> additionalVmArgs)
Constructs a new
ModdedGameConfiguration instance. |
| Modifier and Type | Method and Description |
|---|---|
ModLoader |
getModLoader()
Returns the mod loader type.
|
java.lang.String |
getModLoaderVersion()
Returns the version of the mod loader.
|
java.util.List<fr.flowarg.flowupdater.download.json.Mod> |
getMods()
Returns the list of mods.
|
getAdditionalVmArgs, getGameDir, getMcVersionpublic ModdedGameConfiguration(java.nio.file.Path gameDir,
java.lang.String mcVersion,
ModLoader modLoader,
java.lang.String modLoaderVersion,
java.util.List<fr.flowarg.flowupdater.download.json.Mod> mods,
java.util.List<java.lang.String> additionalVmArgs)
ModdedGameConfiguration instance.gameDir - The directory where the game files are located.mcVersion - The Minecraft version to launch.modLoader - The mod loader type (e.g., Forge, Fabric, Quilt).modLoaderVersion - The version of the mod loader to use.mods - The list of mods to include in the game.additionalVmArgs - Additional JVM arguments to use when launching the game.public ModLoader getModLoader()
public java.lang.String getModLoaderVersion()
public java.util.List<fr.flowarg.flowupdater.download.json.Mod> getMods()