mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
18 lines (17 loc) • 606 B
TypeScript
import { File, ContextAbstract } from "../../../mdk-core/src";
import { ScheduleMode } from "../function/schedule";
export declare class Schedule extends ContextAbstract {
constructor(context: File);
/**
* 将函数列入队伍。
* @param functionName 函数名
* @param time 时间
* @param mode 模式
*/
functionName(functionName: string | File, time: string, mode?: ScheduleMode): this;
/**
* 将等待运行的函数从等待队伍中删除。
* @param functionName 函数名
*/
clear(functionName: string | File): this;
}