mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
35 lines (34 loc) • 1.08 kB
TypeScript
export declare type PackSortType = 'first' | 'last';
export declare type PackListType = 'available' | 'enabled';
export declare type PackPosType = 'before' | 'after';
declare const _default: {
disable: typeof disable;
enable: typeof enable;
list: typeof list;
};
export default _default;
/**
* 禁用指定数据包
* @param packName 数据包名字
*/
declare function disable(packName: string): string;
/**
* 启用指定数据包
* @param packName 数据包名字
*/
declare function enable(packName: string): string;
/**
* 启用指定数据包
* @param packName 数据包名字
* @param sort 排序 'first' | 'last'
*/
declare function enable(packName: string, sort: PackSortType): string;
/**
* 启用指定数据包
* @param packName 数据包名字
* @param pos 先后 'before' | 'after'
* @param existName 已开启的数据包名字
*/
declare function enable(packName: string, pos: PackPosType, existName: string): string;
declare function list(): string;
declare function list(listType: PackListType): string;