UNPKG

mineflayer-crafting-util

Version:
10 lines (9 loc) 546 B
import type { Bot, BotOptions } from 'mineflayer'; import type { Recipe as PRecipe } from 'prismarine-recipe'; import type { CraftOptions, Item, CraftingPlan } from './types'; import type { IndexedData } from 'minecraft-data'; type CraftingFunc = (item: Item, opts?: CraftOptions) => CraftingPlan; export declare function _build(Recipe: typeof PRecipe): CraftingFunc; export declare function injectBot(bot: Bot, botoptions: BotOptions): Promise<void>; export declare function buildStatic(registry: IndexedData): Promise<CraftingFunc>; export {};