|
|
|
@ -421,25 +421,25 @@ public class Region {
|
|
|
|
|
reset(schematic, regionType, RegionExtensionType.NORMAL, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void reset(RegionType regionType, RegionExtensionType regionExtensionType) throws IOException {
|
|
|
|
|
reset(null, regionType, regionExtensionType, false);
|
|
|
|
|
public void reset(RegionType regionType, RegionExtensionType regionExtensionType, boolean isTestBlock) throws IOException {
|
|
|
|
|
reset(null, regionType, regionExtensionType, isTestBlock);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType) throws IOException {
|
|
|
|
|
reset(schematic, regionType, regionExtensionType, false);
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType, boolean isTestBlock) throws IOException {
|
|
|
|
|
reset(schematic, regionType, regionExtensionType, false, isTestBlock);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void reset(File file) {
|
|
|
|
|
EditSession editSession = paste(file, minPoint.add(prototype.getSizeX() / 2, 0, prototype.getSizeZ() / 2), new PasteOptions(false, false, Color.YELLOW, false, false, getMinPoint(RegionType.NORMAL, RegionExtensionType.NORMAL), getMaxPoint(RegionType.NORMAL, RegionExtensionType.NORMAL), waterLevel));
|
|
|
|
|
EditSession editSession = paste(file, minPoint.add(prototype.getSizeX() / 2, 0, prototype.getSizeZ() / 2), new PasteOptions(false, false, Color.YELLOW, false, false, getMinPoint(RegionType.NORMAL, RegionExtensionType.NORMAL), getMaxPoint(RegionType.NORMAL, RegionExtensionType.NORMAL), waterLevel, false));
|
|
|
|
|
initSessions();
|
|
|
|
|
undoSessions.push(editSession);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType, boolean ignoreAir) throws IOException {
|
|
|
|
|
reset(schematic, regionType, regionExtensionType, ignoreAir, false);
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType, boolean ignoreAir, boolean isTestBlock) throws IOException {
|
|
|
|
|
reset(schematic, regionType, regionExtensionType, ignoreAir, false, isTestBlock);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType, boolean ignoreAir, boolean onlyColors) throws IOException {
|
|
|
|
|
public void reset(SchematicNode schematic, RegionType regionType, RegionExtensionType regionExtensionType, boolean ignoreAir, boolean onlyColors, boolean isTestBlock) throws IOException {
|
|
|
|
|
if (!hasReset(regionType)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -447,7 +447,7 @@ public class Region {
|
|
|
|
|
regionExtensionType = RegionExtensionType.NORMAL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PasteOptions pasteOptions = new PasteOptions((schematic != null && (schematic.getSchemtype().fightType() || schematic.getSchemtype().check())), ignoreAir, getPlain(Flag.COLOR, ColorMode.class).getColor(), onlyColors, regionExtensionType == RegionExtensionType.EXTENSION, getMinPoint(regionType, regionExtensionType), getMaxPoint(regionType, regionExtensionType), waterLevel);
|
|
|
|
|
PasteOptions pasteOptions = new PasteOptions((schematic != null && (schematic.getSchemtype().fightType() || schematic.getSchemtype().check())), ignoreAir, getPlain(Flag.COLOR, ColorMode.class).getColor(), onlyColors, regionExtensionType == RegionExtensionType.EXTENSION, getMinPoint(regionType, regionExtensionType), getMaxPoint(regionType, regionExtensionType), waterLevel, isTestBlock);
|
|
|
|
|
|
|
|
|
|
Point pastePoint;
|
|
|
|
|
File tempFile = null;
|
|
|
|
|