@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
34 lines (33 loc) • 1.11 kB
TypeScript
import IProjectInfoData from "../info/IProjectInfoData";
import { IPackageReference } from "../minecraft/IWorldSettings";
import IFile from "../storage/IFile";
import IFolder from "../storage/IFolder";
import CreatorTools from "./CreatorTools";
export declare enum PackageType {
packSet = 0,
world = 1,
worldTemplate = 2,
generic = 3,
project = 4
}
export default class Package {
storagePath: string;
name: string;
baseName: string;
type: PackageType;
file?: IFile;
reportFile?: IFile;
cacheFolder?: IFolder;
data?: IProjectInfoData;
get isWorldType(): boolean;
constructor(name: string, path: string);
static ensureMinecraftCreatorToolsPackageReference(packRefs: IPackageReference[]): IPackageReference[];
_getPackTypeFromPath(path: string): PackageType;
ensureData(creatorTools: CreatorTools, file: IFile): Promise<void>;
createReference(): IPackageReference;
getRefFromString(uuidPlusVersion: string): {
uuid: string;
version: any[];
};
matches(packName: string, isWorldFocused?: boolean): boolean;
}