From 5a926bf169c5d71ce05511da4beed6ba8866804a Mon Sep 17 00:00:00 2001 From: ZacSharp <68165024+ZacSharp@users.noreply.github.com> Date: Fri, 19 Feb 2021 23:52:18 +0100 Subject: [PATCH] formatting --- .../java/baritone/api/schematic/CompositeSchematic.java | 4 ++-- src/api/java/baritone/api/schematic/ISchematic.java | 6 +++--- src/api/java/baritone/api/schematic/ReplaceSchematic.java | 8 ++++---- src/main/java/baritone/process/BuilderProcess.java | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/api/java/baritone/api/schematic/CompositeSchematic.java b/src/api/java/baritone/api/schematic/CompositeSchematic.java index 17d31689..fab049b5 100644 --- a/src/api/java/baritone/api/schematic/CompositeSchematic.java +++ b/src/api/java/baritone/api/schematic/CompositeSchematic.java @@ -73,8 +73,8 @@ public class CompositeSchematic extends AbstractSchematic { } @Override - public void reset(){ - for (CompositeSchematicEntry entry : schematicArr){ + public void reset() { + for (CompositeSchematicEntry entry : schematicArr) { if (!(entry.schematic instanceof IStaticSchematic)) { entry.schematic.reset(); } diff --git a/src/api/java/baritone/api/schematic/ISchematic.java b/src/api/java/baritone/api/schematic/ISchematic.java index 82d71284..deb81182 100644 --- a/src/api/java/baritone/api/schematic/ISchematic.java +++ b/src/api/java/baritone/api/schematic/ISchematic.java @@ -74,9 +74,9 @@ public interface ISchematic { IBlockState desiredState(int x, int y, int z, IBlockState current, List approxPlaceable); /** - * Resets possible caches to avoid wrong behavior when moving the schematic around - */ - default void reset(){} + * Resets possible caches to avoid wrong behavior when moving the schematic around + */ + default void reset() {} /** * @return The width (X axis length) of this schematic diff --git a/src/api/java/baritone/api/schematic/ReplaceSchematic.java b/src/api/java/baritone/api/schematic/ReplaceSchematic.java index b9979b24..f8cd6656 100644 --- a/src/api/java/baritone/api/schematic/ReplaceSchematic.java +++ b/src/api/java/baritone/api/schematic/ReplaceSchematic.java @@ -32,11 +32,11 @@ public class ReplaceSchematic extends MaskSchematic { } @Override - public void reset(){ + public void reset() { // it's final, can't use this.cache = new Boolean[widthX()][heightY()][lengthZ()] - for (int x = 0; x < cache.length; x++){ - for (int y = 0; y < cache[0].length; y++){ - for (int z = 0; z < cache[0][0].length; z++){ + for (int x = 0; x < cache.length; x++) { + for (int y = 0; y < cache[0].length; y++) { + for (int z = 0; z < cache[0][0].length; z++) { cache[x][y][z] = null; } } diff --git a/src/main/java/baritone/process/BuilderProcess.java b/src/main/java/baritone/process/BuilderProcess.java index 18241fba..c0519b55 100644 --- a/src/main/java/baritone/process/BuilderProcess.java +++ b/src/main/java/baritone/process/BuilderProcess.java @@ -381,8 +381,8 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil } @Override - public void reset(){ - if (!(realSchematic instanceof IStaticSchematic)){ + public void reset() { + if (!(realSchematic instanceof IStaticSchematic)) { realSchematic.reset(); } } @@ -424,7 +424,7 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil // build repeat time layer = 0; origin = new BlockPos(origin).add(repeat); - if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value){ + if (!(schematic instanceof IStaticSchematic) && !Baritone.settings().buildRepeatSneaky.value) { schematic.reset(); } logDirect("Repeating build in vector " + repeat + ", new origin is " + origin);