Skip to content

@loontail/minecraft-kit v0.8.14 / RepairBlockedAspect

Type alias: RepairBlockedAspect

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

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

Type declaration

MemberType
codeMinecraftKitErrorCode
messagestring

Source

src/repair/all.ts:45

MIT License