Skip to content

@loontail/minecraft-kit v0.8.14 / FabricProfile

Type alias: FabricProfile

ts
type FabricProfile: {
  arguments: {
     game: readonly string[];
     jvm: readonly string[];
    };
  id: string;
  inheritsFrom: string;
  libraries: readonly MinecraftLibrary[];
  mainClass: string;
  type: string;
};

Fabric profile JSON returned by /v2/versions/loader/{mc}/{loader}/profile/json.

Example

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

const fabric = await kit.versions.fabric.resolve({ minecraftVersion: "1.20.1" });
const profile: FabricProfile = fabric.profile;
console.log(profile.mainClass, `${profile.libraries.length} libraries`);

Type declaration

MemberType
arguments{
game: readonly string[];
jvm: readonly string[];
}
arguments.gamereadonly string[]
arguments.jvmreadonly string[]
idstring
inheritsFromstring
librariesreadonly MinecraftLibrary[]
mainClassstring
typestring

Source

src/types/fabric.ts:50

MIT License