UNPKG

@throw-out-error/minecraft-mcfunction

Version:

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

18 lines (17 loc) 637 B
import { Command } from '../'; import { Selector } from '../../arguments'; declare type Gamemode = 'survival' | 'creative' | 'adventure' | 'spectator'; declare type Args = [Gamemode] | [Gamemode, Selector]; export declare class GamemodeCommand extends Command<'gamemode', Args> { gamemode: Gamemode; target?: Selector; constructor(gamemode: Gamemode, target?: Selector); get [Command.ARGUMENTS](): Args; } export declare function gamemode(gamemode: Gamemode, target?: Selector): GamemodeCommand; declare module '../' { interface CommandContext { gamemode: typeof gamemode; } } export {};