UNPKG

mineflayer-crafting-util

Version:
11 lines (10 loc) 625 B
import type { Bot } from 'mineflayer'; import type { CraftOptions, CraftingPlan } from './types'; type CraftingTable = NonNullable<Parameters<Bot['craft']>[2]>; export interface CraftPlanOptions { strict?: boolean; } export declare function craftPlan(bot: Bot, plan: CraftingPlan, craftingTable: CraftingTable, options?: CraftPlanOptions): Promise<CraftingPlan>; export declare function craftItem(bot: Bot, itemId: number, count: number, craftingTable: CraftingTable, options?: CraftOptions, craftOptions?: CraftPlanOptions): Promise<CraftingPlan>; export declare function setupActualCrafting(bot: Bot): void; export {};