@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
17 lines (16 loc) • 728 B
TypeScript
import IGalleryItem from "../IGalleryItem";
export default class GalleryReader {
private defaultProjectImage;
/**
* Maps a GitHub repository name (e.g., "minecraft-samples") to the shortened
* local folder name used under res/samples/<owner>/. These must match the
* `replaceFirstFolderWith` values in app/reslist/*.resources.json.
*
* Falls back to the conventional `<repoName>-<branch>` pattern for unknown repos.
*/
static readonly repoFolderMap: Record<string, string>;
static getLocalRepoFolder(gitHubRepoName: string, gitHubBranch?: string): string;
constructor(defaultProjectImage: string);
private getStandinImage;
getGalleryImage(item: IGalleryItem): string;
}