Launching Configuration
1. The LaunchConfiguration
Section titled “1. The LaunchConfiguration”The LaunchConfiguration is the central configuration object for launching Minecraft with Minified.
It can be built using the LaunchConfiguration.Builder class, which provides a fluent API for setting various launch parameters.
Example usage:
LaunchConfiguration config = new LaunchConfiguration.Builder() .downloadThreads(10) .launcherName("YourLauncherName") .launcherVersion("1.0.0") .assetsDirectory(Path.of("<assets-directory>")) .librariesDirectory(Path.of("<libraries-directory>")) .jarFile(Path.of("<client.jar>")) .isDemoUser(false) .loader(new VanillaLoader("1.21.11")) .build(););val config = LaunchConfiguration.Builder() .downloadThreads(10) .launcherName("YourLauncherName") .launcherVersion("1.0.0") .assetsDirectory(Path.of("<assets-directory>")) .librariesDirectory(Path.of("<libraries-directory>")) .jarFile(Path.of("<client.jar>")) .isDemoUser(false) .loader(VanillaLoader("1.21.11")) .build())2. Fields
Section titled “2. Fields”Configure how Minecraft is downloaded, prepared, and launched.
Configuration Fields16 available fields
minRamOptionalThe minimum amount of RAM allocated to the Minecraft process.
maxRamOptionalThe maximum amount of RAM allocated to the Minecraft process.
downloadThreadsOptionalThe number of threads used for downloading assets and libraries.
resolutionWidthOptionalThe width of the Minecraft window.
resolutionHeightOptionalThe height of the Minecraft window.
launcherNameOptionalThe name of the launcher. May be displayed in-game or in logs.
launcherVersionOptionalThe launcher version. May be displayed in-game or in logs.
demoUserOptionalControls whether Minecraft launches in demo mode.
jarFileRequiredThe path to the Minecraft client JAR file.
librariesDirectoryRequiredThe directory where Minecraft libraries are stored.
assetsDirectoryRequiredThe directory where Minecraft assets are stored.
nativesDirectoryOptionalThe directory where native libraries are extracted.
customJavaExecutableOptionalA custom Java executable used to launch Minecraft.
extraJvmArgsOptionalAdditional JVM arguments passed to the Minecraft process.
loaderRequiredThe loader used to launch Minecraft. Must implement the
Loader interface.
offlineUsernameOptionalThe username used when launching Minecraft in offline mode.