Skip to content

@loontail/minecraft-kit / verifyFabric

Function: verifyFabric()

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

Defined in: src/verify/fabric.ts:34

Verify the Fabric loader slice: profile JSON + every library it pulls in.

Throws INVALID_INPUT when the target is not a Fabric install.

Prefer kit.verify.fabric.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.fabric.run(fabricTarget);
if (!result.isValid) {
  const plan = await kit.repair.fabric.plan(fabricTarget, { from: result });
  await kit.repair.fabric.run(plan);
}

MIT License