Class SchematicExport
java.lang.Object
com.simibubi.create.content.schematics.SchematicExport
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsaveSchematic(Path dir, String fileName, boolean overwrite, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos first, net.minecraft.core.BlockPos second) Save a schematic to a file from a world.
-
Constructor Details
-
SchematicExport
public SchematicExport()
-
-
Method Details
-
saveSchematic
@Nullable public static SchematicExport.SchematicExportResult saveSchematic(Path dir, String fileName, boolean overwrite, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos first, net.minecraft.core.BlockPos second) Save a schematic to a file from a world.- Parameters:
dir- the directory the schematic will be created infileName- the ideal name of the schematic, may not be the name of the created fileoverwrite- whether overwriting an existing schematic is allowedlevel- the level where the schematic structure is placedfirst- the first corner of the schematic areasecond- the second corner of the schematic area- Returns:
- a SchematicExportResult, or null if an error occurred.
-