@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
20 lines (19 loc) • 959 B
TypeScript
/**
* ReloadProjectCommand - Re-scan the current project's files
*
* Re-runs `project.inferProjectItemsFromFiles(true)` so any files
* that were added, removed, or modified outside the editor are
* picked up. Reports the new total item count.
*
* NOTE: this shadows Bedrock's in-game `/reload` command for the
* MCT slash bar. Inside a Bedrock console you can still reach
* Bedrock's reload via the dedicated server console.
*/
import type { IToolCommandMetadata, IToolCommandResult } from "../IToolCommand";
import { ToolCommandBase } from "../IToolCommand";
import type { IToolCommandContext } from "../IToolCommandContext";
export declare class ReloadProjectCommand extends ToolCommandBase {
readonly metadata: IToolCommandMetadata;
execute(context: IToolCommandContext, _args: string[], _flags: Record<string, string | boolean | string[]>): Promise<IToolCommandResult>;
}
export declare const reloadProjectCommand: ReloadProjectCommand;