ClasspathManager class

Manages the Java classpath for Minecraft game execution.

Responsible for building the classpath required to run the Minecraft client, including the main client JAR and all required libraries.

Constructors

ClasspathManager.new({required String gameDir, DownloadProgressCallback? onDownloadProgress, OperationProgressCallback? onOperationProgress, int progressReportRate = 10})
Creates a new classpath manager.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildClasspath(VersionInfo versionInfo, String versionId) Future<List<String>>
Builds the full Java classpath for the specified Minecraft version.
downloadClientJar(VersionInfo versionInfo, String versionId) Future<void>
Downloads the Minecraft client JAR file for the specified version.
downloadLibraries(VersionInfo versionInfo) Future<void>
Downloads all required library files for the specified Minecraft version.
getClientJarPath(String versionId) String
Gets the path to the Minecraft client JAR file for a specific version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDuplicateLibraries(List<String> classpath) List<String>
Removes duplicate libraries from the classpath, keeping only the newest version.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited