UNPKG

@throw-out-error/minecraft-mcfunction

Version:

A simple way to create your mcfunction files using Typescript syntax.

20 lines (19 loc) 856 B
import { Command } from '..'; import { Selector } from '../../arguments'; declare type Mode = 'grant' | 'revoke'; declare type Everything = [Mode, Selector, 'everything']; declare type Only = [Mode, Selector, 'only', string] | [Mode, Selector, 'only', string, string]; declare type FTU = [Mode, Selector, 'from' | 'through' | 'until', string]; declare type Args = Everything | Only | FTU; export declare class AdvancementCommand extends Command<'advancement', Args> { constructor(...args: Args); } export declare function advancement(...args: Everything): AdvancementCommand; export declare function advancement(...args: Only): AdvancementCommand; export declare function advancement(...args: FTU): AdvancementCommand; declare module '../' { interface CommandContext { advancement: typeof advancement; } } export {};