Skip to content

@loontail/minecraft-kit / RepairBlockedAspect

Type Alias: RepairBlockedAspect

ts
type RepairBlockedAspect = {
  code: MinecraftKitErrorCode;
  message: string;
};

Defined in: src/repair/all.ts:56

Why an aspect could not be repaired this run. Recorded by repairAll when planning or running a repair fails with a connectivity error, so an offline "Repair" degrades to "these aspects still need the network" instead of rejecting the whole operation.

Example

ts
const report = await kit.repair.all(target);
for (const [aspect, blocker] of report.blockedAspects) {
  console.warn(`${aspect} could not be repaired offline: ${blocker.message}`);
}

Properties

PropertyModifierTypeDefined in
codereadonlyMinecraftKitErrorCodesrc/repair/all.ts:57
messagereadonlystringsrc/repair/all.ts:58

MIT License