Appearance
@loontail/minecraft-kit / resolveLaunchVersion
Function: resolveLaunchVersion()
ts
function resolveLaunchVersion(target): Promise<ResolvedLaunchVersion>;Defined in: src/launch/version-resolution.ts:47
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
| Parameter | Type |
|---|---|
target | Target |
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}`);