接口 StructureCreateOptions实验性

Provides additional options for StructureManager.createFromWorld

interface StructureCreateOptions {
    includeBlocks?: boolean;
    includeEntities?: boolean;
    saveMode?: StructureSaveMode;
}

属性

includeBlocks?: boolean

Whether blocks should be included in the structure. Defaults to true.

includeEntities?: boolean

Whether entities should be included in the structure. Defaults to true.

How the Structure should be saved. Defaults to StructureSaveMode.World.