UNPKG

mdkjs

Version:

mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.

9 lines (8 loc) 425 B
import { FileAbstract } from "./file"; declare type PluginFunc = (...args: any[]) => void; declare type PluginHandle = (activeFile: FileAbstract<any>) => void; export declare function use(pluginFunc: PluginFunc, ...args: any[]): void; declare type EventType = 'init'; export declare function emit(event: EventType, ctx: any): void; export declare function on(event: EventType, handle: PluginHandle): void; export {};