Appearance
@loontail/minecraft-kit v0.8.14 / verifyForge
Function: verifyForge()
ts
function verifyForge(input): Promise<VerificationResult>Verify the Forge loader slice: the on-disk Forge version JSON and every library it declares. 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.
Throws INVALID_INPUT when the target is not a Forge install.
Prefer kit.verify.forge.run(target) over importing this directly.
Parameters
| Parameter | Type |
|---|---|
input | VerifyAspectInput |
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);