import type {Bot} from '@wp2508/mineflayer'; import type {BaseFunction} from '../../../types/bot/function/function.ts'; import {entity_arguments, run_entity_operation, type CursorItemArgs} from './shared.ts'; export class init implements BaseFunction { readonly name = 'feed_cursor_entity'; readonly i18n = {lang: 'zh-CN', name: '喂食光标实体', description: '对光标实体使用指定手的物品,可选瞄准,由服务器判断是否可以喂食'}; readonly args = entity_arguments(false, true); async run(bot: Bot, args: CursorItemArgs): Promise { return run_entity_operation(bot, args, false, 'item'); } }