diff --git a/src/main/java/baritone/Settings.java b/src/main/java/baritone/Settings.java index 3b64e70a..e596df14 100644 --- a/src/main/java/baritone/Settings.java +++ b/src/main/java/baritone/Settings.java @@ -310,7 +310,7 @@ public class Settings { @SuppressWarnings("unchecked") public List> getByValueType(Class klass) { - ArrayList> result = new ArrayList<>(); + List> result = new ArrayList<>(); for (Setting setting : allSettings) { if (setting.klass.equals(klass)) { result.add((Setting) setting); diff --git a/src/main/java/baritone/chunk/CachedRegion.java b/src/main/java/baritone/chunk/CachedRegion.java index 514d1b23..923edc16 100644 --- a/src/main/java/baritone/chunk/CachedRegion.java +++ b/src/main/java/baritone/chunk/CachedRegion.java @@ -235,7 +235,7 @@ public final class CachedRegion implements IBlockTypeAccess { short numSpecialBlockTypes = in.readShort(); for (int i = 0; i < numSpecialBlockTypes; i++) { String blockName = in.readUTF(); - ArrayList locs = new ArrayList<>(); + List locs = new ArrayList<>(); location[x][z].put(blockName, locs); short numLocations = in.readShort(); for (int j = 0; j < numLocations; j++) { diff --git a/src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java b/src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java index b570d0f5..7bde41c7 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java @@ -145,7 +145,7 @@ public class MovementDiagonal extends Movement { if (toBreakCached != null) { return toBreakCached; } - ArrayList result = new ArrayList<>(); + List result = new ArrayList<>(); for (int i = 4; i < 6; i++) { if (!MovementHelper.canWalkThrough(positionsToBreak[i])) { result.add(positionsToBreak[i]); diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 58e93658..e7c637d7 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -272,7 +272,7 @@ public class ExampleBaritoneControl extends Behavior { } if (msg.toLowerCase().equals("costs")) { Movement[] movements = AStarPathFinder.getConnectedPositions(new BetterBlockPos(playerFeet()), new CalculationContext()); - ArrayList moves = new ArrayList<>(Arrays.asList(movements)); + List moves = new ArrayList<>(Arrays.asList(movements)); moves.sort(Comparator.comparingDouble(movement -> movement.getCost(new CalculationContext()))); for (Movement move : moves) { String[] parts = move.getClass().toString().split("\\.");