Skip to content

@loontail/minecraft-kit / verifyForge

Function: verifyForge()

ts
function verifyForge(input): Promise<VerificationResult>;

Defined in: src/verify/forge.ts:55

Verify the Forge loader slice: the on-disk Forge version JSON, every library it declares, the artifacts flushed out of the installer's maven/ tree, and the files the Forge processors generate. Libraries can only be enumerated once the JSON is present and parsable; a malformed JSON is surfaced as a CORRUPT issue so repair rewrites it before re-running.

Stays offline: the processor outputs are read from the installer JAR already on disk.

Throws INVALID_INPUT when the target is not a Forge install.

Prefer kit.verify.forge.run(target) over importing this directly.

Parameters

ParameterType
inputVerifyAspectInput

Returns

Promise<VerificationResult>

Example

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

const kit = new MinecraftKit();
const result = await kit.verify.forge.run(forgeTarget);
for (const issue of result.issues) console.log(issue.status, issue.path);

MIT License