UNPKG

mdkjs

Version:

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

57 lines (56 loc) 1.63 kB
import { Selector } from "../../../mdk-core/src"; declare const _default: { add: typeof add; empty: typeof empty; join: typeof join; leave: typeof leave; list: typeof list; modify: typeof modify; }; export default _default; /** * 创建一个新队伍。 * @param teamName 队伍名 */ declare function add(teamName: string): string; /** * 创建一个新队伍。 * @param teamName 队伍名 * @param displayName 展示名称 */ declare function add(teamName: string, displayName: string): string; /** * 移除目标队伍中所有的成员。 * @param teamName 队伍名 */ declare function empty(teamName: string): string; /** * 使目标玩家或实体离开队伍。 * @param teamName 队伍名 */ declare function join(teamName: string): string; /** * 使目标玩家或实体离开队伍。 * @param teamName 队伍名 * @param member 成员 */ declare function join(teamName: string, member?: Selector): string; /** * 使目标玩家或实体离开队伍。 * @param teamName 队伍名 */ declare function leave(member: Selector): string; /** * 列出所有队伍。当队伍名指定时,列出属于该队伍的所有成员。 */ declare function list(): string; /** * 列出所有队伍。当队伍名指定时,列出属于该队伍的所有成员。 * @param teamName 队伍名 */ declare function list(teamName?: string): string; /** * 将目标队伍选项的值修改为指定值。 * @param teamName 队伍名 */ declare function modify(teamName: string, criteria: string, value: number): string;