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 Fields17 available fields
minRamOptional

The minimum amount of RAM allocated to the Minecraft process.

Megabytes · Default: 2048
maxRamOptional

The maximum amount of RAM allocated to the Minecraft process.

Megabytes · Default: 4096
downloadThreadsOptional

The number of threads used for downloading assets and libraries.

Default: 5
resolutionWidthOptional

The width of the Minecraft window. Only takes effect if set together with resolutionHeight via the resolution(width, height) builder method - see the note below.

Pixels · Default: 1920
resolutionHeightOptional

The height of the Minecraft window. Only takes effect if set together with resolutionWidth via the resolution(width, height) builder method - see the note below.

Pixels · Default: 1080
launcherNameOptional

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

Default: “Launcher”
launcherVersionOptional

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

Default: “1.0.0”
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”
eventBusOptional

The EventBus used to dispatch events during the launch process.

Default: a new EventBus