formatting
This commit is contained in:
parent
c880f71dc8
commit
5a926bf169
@ -73,8 +73,8 @@ public class CompositeSchematic extends AbstractSchematic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reset(){
|
public void reset() {
|
||||||
for (CompositeSchematicEntry entry : schematicArr){
|
for (CompositeSchematicEntry entry : schematicArr) {
|
||||||
if (!(entry.schematic instanceof IStaticSchematic)) {
|
if (!(entry.schematic instanceof IStaticSchematic)) {
|
||||||
entry.schematic.reset();
|
entry.schematic.reset();
|
||||||
}
|
}
|
||||||
|
@ -74,9 +74,9 @@ public interface ISchematic {
|
|||||||
IBlockState desiredState(int x, int y, int z, IBlockState current, List<IBlockState> approxPlaceable);
|
IBlockState desiredState(int x, int y, int z, IBlockState current, List<IBlockState> approxPlaceable);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets possible caches to avoid wrong behavior when moving the schematic around
|
* Resets possible caches to avoid wrong behavior when moving the schematic around
|
||||||
*/
|
*/
|
||||||
default void reset(){}
|
default void reset() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The width (X axis length) of this schematic
|
* @return The width (X axis length) of this schematic
|
||||||
|
@ -32,11 +32,11 @@ public class ReplaceSchematic extends MaskSchematic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reset(){
|
public void reset() {
|
||||||
// it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()]
|
// it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()]
|
||||||
for (int x = 0; x < cache.length; x++){
|
for (int x = 0; x < cache.length; x++) {
|
||||||
for (int y = 0; y < cache[0].length; y++){
|
for (int y = 0; y < cache[0].length; y++) {
|
||||||
for (int z = 0; z < cache[0][0].length; z++){
|
for (int z = 0; z < cache[0][0].length; z++) {
|
||||||
cache[x][y][z] = null;
|
cache[x][y][z] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -381,8 +381,8 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void reset(){
|
public void reset() {
|
||||||
if (!(realSchematic instanceof IStaticSchematic)){
|
if (!(realSchematic instanceof IStaticSchematic)) {
|
||||||
realSchematic.reset();
|
realSchematic.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -424,7 +424,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
|
|||||||
// build repeat time
|
// build repeat time
|
||||||
layer = 0;
|
layer = 0;
|
||||||
origin = new BlockPos(origin).add(repeat);
|
origin = new BlockPos(origin).add(repeat);
|
||||||
if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value){
|
if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value) {
|
||||||
schematic.reset();
|
schematic.reset();
|
||||||
}
|
}
|
||||||
logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);
|
logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);
|
||||||
|
Loading…
Reference in New Issue
Block a user