Skip to content

@loontail/minecraft-kit v0.8.14 / verifyFabric

Function: verifyFabric()

ts
function verifyFabric(input): Promise<VerificationResult>

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);
}

Source

src/verify/fabric.ts:34

MIT License