Appearance
@loontail/minecraft-kit v0.8.14 / repairAll
Function: repairAll()
ts
function repairAll(input): Promise<RepairAllReport>Verify every applicable aspect and repair each broken one. Aspects whose repair cannot reach the network are reported in blockedAspects instead of rejecting the operation, so an offline "Repair" still fixes everything that is locally fixable.
Prefer kit.repair.all(target) over importing this directly.
Parameters
| Parameter | Type |
|---|---|
input | RepairAllInput |
Returns
Promise<RepairAllReport>
Example
ts
import { MinecraftKit } from "@loontail/minecraft-kit";
const kit = new MinecraftKit();
const report = await kit.repair.all(target, { onEvent: (e) => console.log(e.type) });
if (report.repairs.size === 0 && report.blockedAspects.size === 0) {
console.log("everything was already valid");
}