Skip to content

@loontail/minecraft-kit v0.8.14 / resolveLaunchVersion

Function: resolveLaunchVersion()

ts
function resolveLaunchVersion(target): Promise<ResolvedLaunchVersion>

Read the installed version JSON appropriate for a target's loader and merge inheritsFrom.

kit.launch.compose calls this internally; reach for it directly when you need the merged manifest (or the inheritsFrom chain) without composing a full JVM invocation.

Parameters

ParameterType
targetTarget

Returns

Promise<ResolvedLaunchVersion>

Example

ts
import { resolveLaunchVersion } from "@loontail/minecraft-kit";

const { merged, versionId, chain } = await resolveLaunchVersion(target);
console.log(`launching ${versionId} → ${chain.join(" → ")} via ${merged.mainClass}`);

Source

src/launch/version-resolution.ts:47

MIT License