Appearance
@loontail/minecraft-kit v0.8.14 / MinecraftKit
Class: MinecraftKit
Single facade for the entire library.
Example
ts
const kit = new MinecraftKit();
const target = await kit.targets.resolve({ id, directory, minecraft: { version: '1.20.1' }, loader: { type: Loaders.VANILLA } });
const plan = await kit.install.plan(target);
await kit.install.run(plan, { onEvent: console.log });Constructors
new MinecraftKit()
ts
new MinecraftKit(options): MinecraftKitParameters
| Parameter | Type |
|---|---|
options | MinecraftKitOptions |
Returns
Source
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
auth | readonly | MojangAuthApi | Microsoft / Mojang authentication. Runs the OAuth 2.0 Authorization-Code + PKCE flow over a loopback redirect to mint an Xbox + Minecraft session for launch.compose. |
cache | readonly | MetadataCache | Cache surface useful for advanced consumers (e.g. clearing between operations). |
install | readonly | InstallAspect | - |
launch | readonly | LaunchAspect | - |
repair | readonly | RepairSurface | - |
targets | readonly | TargetsApi | - |
verify | readonly | VerifyAspect | - |
versions | readonly | { fabric: FabricVersionsApi; forge: ForgeVersionsApi; minecraft: MinecraftVersionsApi; runtime: RuntimeVersionsApi; } | - |
versions.fabric | public | FabricVersionsApi | - |
versions.forge | public | ForgeVersionsApi | - |
versions.minecraft | public | MinecraftVersionsApi | - |
versions.runtime | public | RuntimeVersionsApi | - |