@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
44 lines (43 loc) • 1.74 kB
TypeScript
import ProjectInfoItem from "./ProjectInfoItem";
import ProjectItem from "../app/ProjectItem";
import IProjectInfoItemGenerator from "./IProjectItemInfoGenerator";
import ProjectInfoSet from "./ProjectInfoSet";
import ContentIndex from "../core/ContentIndex";
import { IGeneratorOptions } from "./ProjectInfoSet";
export declare const MaxWorldRecordsToProcess = 3000000;
/**
* Validates and aggregates world data including command blocks and level.dat information.
*
* @see {@link ../../public/data/forms/mctoolsval/worlddata.form.json} for topic definitions
*/
export declare enum WorldDataInfoGeneratorTest {
unexpectedCommandInMCFunction = 101,
unexpectedCommandInCommandBlock = 102,
minX = 103,
minZ = 104,
maxX = 105,
maxZ = 106,
containsWorldImpactingCommand = 112,
blocks = 121,
blockData = 122,
command = 123,
executeSubCommand = 124,
levelDat = 125,
levelDatExperiments = 126,
subchunklessChunks = 127,
chunks = 128,
commandIsFromOlderMinecraftVersion = 212,
couldNotProcessWorld = 216,
errorProcessingWorld = 400,
unexpectedError = 401
}
export default class WorldDataInfoGenerator implements IProjectInfoItemGenerator {
id: string;
title: string;
modernCommandVersion: number;
performAddOnValidations: boolean;
performPlatformVersionValidations: boolean;
summarize(info: any, infoSet: ProjectInfoSet): void;
processListOfCommands(commandList: string[], items: ProjectInfoItem[], projectItem: ProjectItem, commandsPi: ProjectInfoItem, subCommandsPi: ProjectInfoItem, checkForSlash: boolean): void;
generate(projectItem: ProjectItem, contentIndex: ContentIndex, options?: IGeneratorOptions): Promise<ProjectInfoItem[]>;
}