UNPKG

mdkjs

Version:

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

42 lines (41 loc) 1.2 kB
import { int } from 'mdk-nbt'; import { ContextAbstract, File, Selector } from "../../../../mdk-core/src"; export declare class Title extends ContextAbstract { constructor(context: File); /** * 移除屏幕标题 * @param player 玩家 */ clear(player: Selector): this; /** * 将各选项复位至默认值 * @param player 玩家 */ reset(player: Selector): this; /** * 将文字显示为主标题 * @param player 玩家 * @param text json文本 */ title(player: Selector, text: string): this; /** * 将文字显示为副标题 * @param player 玩家 * @param text json文本 */ subtitle(player: Selector, text: string): this; /** * 在快捷栏上方显示的标题 * @param player 玩家 * @param text json文本 */ actionbar(player: Selector, text: string): this; /** * 设置渐入、保持和渐出的持续时间 * @param player 玩家 * @param fadeIn 渐入 * @param stay 保持 * @param fadeOut 渐出 */ times(player: Selector, fadeIn: int, stay: int, fadeOut: int): this; }