Appearance
@loontail/minecraft-kit v0.8.14 / RuntimeVersionsApi
Class: RuntimeVersionsApi
Public runtime versions API surface.
Available off a kit instance as kit.versions.runtime.
Example
ts
import { detectSystem, MinecraftKit } from "@loontail/minecraft-kit";
const kit = new MinecraftKit();
const runtime = await kit.versions.runtime.resolve({ system: detectSystem() });
console.log(runtime.component, runtime.versionName);Constructors
new RuntimeVersionsApi()
ts
new RuntimeVersionsApi(ctx): RuntimeVersionsApiParameters
| Parameter | Type |
|---|---|
ctx | ResolverContext |
Returns
Source
Methods
list()
ts
list(input): Promise<readonly RuntimeListEntry[]>List available runtime entries for the host platform.
Parameters
| Parameter | Type |
|---|---|
input | RuntimeListInput |
Returns
Promise<readonly RuntimeListEntry[]>
Source
resolve()
ts
resolve(input): Promise<ResolvedRuntime>Resolve a single runtime for the host platform and Minecraft version.
Parameters
| Parameter | Type |
|---|---|
input | RuntimeResolveInput |
Returns
Promise<ResolvedRuntime>