mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
48 lines (47 loc) • 1.28 kB
TypeScript
import { int } from 'mdk-nbt';
import { Selector } from "../../../mdk-core/src";
declare const _default: {
clear: typeof clear;
reset: typeof reset;
title: typeof title;
subtitle: typeof subtitle;
actionbar: typeof actionbar;
times: typeof times;
};
export default _default;
/**
* 移除屏幕标题
* @param player 玩家
*/
declare function clear(player: Selector): string;
/**
* 将各选项复位至默认值
* @param player 玩家
*/
declare function reset(player: Selector): string;
/**
* 将文字显示为主标题
* @param player 玩家
* @param text json文本
*/
declare function title(player: Selector, text: string): string;
/**
* 将文字显示为副标题
* @param player 玩家
* @param text json文本
*/
declare function subtitle(player: Selector, text: string): string;
/**
* 在快捷栏上方显示的标题
* @param player 玩家
* @param text json文本
*/
declare function actionbar(player: Selector, text: string): string;
/**
* 设置渐入、保持和渐出的持续时间
* @param player 玩家
* @param fadeIn 渐入
* @param stay 保持
* @param fadeOut 渐出
*/
declare function times(player: Selector, fadeIn: int, stay: int, fadeOut: int): string;