Appearance
@loontail/minecraft-kit v0.8.14 / ForgeBuildSummary
Type alias: ForgeBuildSummary
ts
type ForgeBuildSummary: {
forgeVersion: string;
fullVersion: string;
isLatest: boolean;
isRecommended: boolean;
minecraftVersion: string;
};A Forge build entry derived from the Maven metadata XML.
Example
ts
import type { ForgeBuildSummary } from "@loontail/minecraft-kit";
const builds: readonly ForgeBuildSummary[] = await kit.versions.forge.list({ minecraftVersion: "1.20.1" });
const recommended = builds.find((b) => b.isRecommended);
console.log(recommended?.fullVersion); // e.g. "1.20.1-47.2.0"Type declaration
| Member | Type | Description |
|---|---|---|
forgeVersion | string | The portion after the first dash, including any branch suffix. |
fullVersion | string | Full Maven version string e.g. "1.20.1-47.2.0". |
isLatest | boolean | True when this build is the latest one per promotions_slim.json. |
isRecommended | boolean | True when this build is the recommended one per promotions_slim.json. |
minecraftVersion | string | Minecraft version e.g. "1.20.1". |