mineflayer-crafting-util
Version:
A plugin to simplify crafting recipes.
10 lines (9 loc) • 546 B
TypeScript
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 {};