Class SchematicExport

java.lang.Object
com.simibubi.create.content.schematics.SchematicExport

public class SchematicExport extends Object
  • Field Details

    • SCHEMATICS

      public static final Path SCHEMATICS
  • 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 in
      fileName - the ideal name of the schematic, may not be the name of the created file
      overwrite - whether overwriting an existing schematic is allowed
      level - the level where the schematic structure is placed
      first - the first corner of the schematic area
      second - the second corner of the schematic area
      Returns:
      a SchematicExportResult, or null if an error occurred.