@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
65 lines (64 loc) • 2.22 kB
TypeScript
/**
* AutocompleteProviders - Built-in autocomplete providers for ToolCommands
*
* These providers supply suggestions for command arguments and flags.
* They query CreatorTools, Project, and content wizard data to provide
* context-aware completions.
*/
import type { AutocompleteProvider } from "./IToolCommandArgument";
import { GalleryItemType } from "../IGalleryItem";
/**
* Entity traits available in the content wizard.
*/
export declare const ENTITY_TRAITS: string[];
/**
* Block traits available in the content wizard.
*/
export declare const BLOCK_TRAITS: string[];
/**
* Item traits available in the content wizard.
*/
export declare const ITEM_TRAITS: string[];
/**
* All traits combined for general trait completion.
*/
export declare const ALL_TRAITS: string[];
/**
* Content types that can be added via the /add command.
*/
export declare const CONTENT_TYPES: string[];
/**
* Map content type names to GalleryItemType for lookup.
*/
export declare const CONTENT_TYPE_TO_GALLERY: Record<string, GalleryItemType>;
/**
* Common project template identifiers.
*/
export declare const PROJECT_TEMPLATES: string[];
/**
* Provides autocomplete for content type names (entity, block, item, etc.)
*/
export declare const contentTypeProvider: AutocompleteProvider;
/**
* Provides autocomplete for traits based on the content type being created.
* @param contentType The type of content (entity, block, item)
*/
export declare function createTraitProvider(contentType?: string): AutocompleteProvider;
/**
* Provides autocomplete for all traits (entity, block, and item).
*/
export declare const allTraitsProvider: AutocompleteProvider;
/**
* Provides autocomplete for project templates.
*/
export declare const projectTemplateProvider: AutocompleteProvider;
/**
* Provides autocomplete for gallery items of a specific type.
* @param itemType The gallery item type to filter by
*/
export declare function createGalleryItemProvider(itemType?: GalleryItemType): AutocompleteProvider;
export declare const projectItemProvider: AutocompleteProvider;
/**
* Provides autocomplete for project item names (display names).
*/
export declare const projectItemNameProvider: AutocompleteProvider;