UNPKG

yoni-mcscripts-lib

Version:

为 Minecraft Script API 中的部分接口创建了 wrapper,并提供简单的事件管理器和任务管理器,另附有一些便于代码编写的一些小工具。

19 lines (18 loc) 629 B
import { CommandQueueExecuteStatus } from "./CommandQueueExecuteStatus.js"; import { CommandSender } from "./CommandSender.js"; /** * contains command queue infos */ export declare class CommandQueue { #private; sender: CommandSender; command: string; get status(): CommandQueueExecuteStatus; get result(): any; resolveResult(commandResult: any): void; reject(err: any): void; constructor(sender: CommandSender, command: string); onresolve(callback: (result: any) => void): void; onreject(callback: (result: any) => void): void; onfulfilled(callback: (result: any) => void): void; }