UNPKG

mdkjs

Version:

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

17 lines (16 loc) 696 B
import { ContextAbstract, File } from "../../../mdk-core/src"; import { BossbarStyle, BossbarType } from '../function/bossbar'; import { BannerColorKind } from 'mdk-nbt'; export declare class Bossbar extends ContextAbstract { constructor(context: File); add(id: string, name: string): this; list(): this; get(id: string, type: BossbarType): this; remove(id: string): this; setStyle(id: string, style: BossbarStyle): this; setValue(id: string, value: number): this; setMax(id: string, max: number): this; setVisible(id: string, visible: boolean): this; setPlayers(id: string): this; setColor(id: string, color: BannerColorKind): this; }