Skip to content

Launching Configuration

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();
);

Configure how Minecraft is downloaded, prepared, and launched.

Configuration Fields16 available fields
minRamOptional

The minimum amount of RAM allocated to the Minecraft process.

Megabytes
maxRamOptional

The maximum amount of RAM allocated to the Minecraft process.

Megabytes
downloadThreadsOptional

The number of threads used for downloading assets and libraries.

resolutionWidthOptional

The width of the Minecraft window.

Pixels
resolutionHeightOptional

The height of the Minecraft window.

Pixels
launcherNameOptional

The name of the launcher. May be displayed in-game or in logs.

launcherVersionOptional

The launcher version. May be displayed in-game or in logs.

demoUserOptional

Controls whether Minecraft launches in demo mode.

Default: false
jarFileRequired

The path to the Minecraft client JAR file.

librariesDirectoryRequired

The directory where Minecraft libraries are stored.

assetsDirectoryRequired

The directory where Minecraft assets are stored.

nativesDirectoryOptional

The directory where native libraries are extracted.

Default: <jarFile parent>/natives

customJavaExecutableOptional

A custom Java executable used to launch Minecraft.

Default: Recommended Java version via minified-java

extraJvmArgsOptional

Additional JVM arguments passed to the Minecraft process.

loaderRequired

The loader used to launch Minecraft. Must implement the Loader interface.

Examples: VanillaLoader, FabricLoader

offlineUsernameOptional

The username used when launching Minecraft in offline mode.

Default: “Player”