@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
19 lines (18 loc) • 987 B
TypeScript
/**
* OpenSampleCommand - Open a built-in sample project
*
* Loads vanilla Minecraft content from the web server's /res/ folder
* directly into the editor as a read-only project. This is useful for:
* - Testing with large real-world content (2000+ files)
* - Exploring vanilla Minecraft definitions
* - Performance testing and benchmarking
*/
import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand";
import { ToolCommandBase } from "../IToolCommand";
import type { IToolCommandContext } from "../IToolCommandContext";
export declare class OpenSampleCommand extends ToolCommandBase {
readonly metadata: IToolCommandMetadata;
execute(context: IToolCommandContext, args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>;
getCompletions(_context: IToolCommandContext, _args: string[], partialArg: string, argIndex: number): Promise<string[]>;
}
export declare const openSampleCommand: OpenSampleCommand;