diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2021-05-03 21:53:00 -0400 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2021-05-03 21:53:00 -0400 |
commit | 70785f7afa63a1fe682f6e9f3d03b72ecc24b803 (patch) | |
tree | a61891a6711887777c3f47e5f4e75486fdbb8119 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle | |
parent | cc03ece233023c57118e9acfeca8103b3bb587e1 (diff) | |
download | Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.gz Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.bz2 Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.zip |
IntelliJ's Code Clean Up
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle')
2 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/RoomProcessorWaterPuzzle.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/RoomProcessorWaterPuzzle.java index 23069f74..df098efb 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/RoomProcessorWaterPuzzle.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/RoomProcessorWaterPuzzle.java @@ -17,11 +17,11 @@ public class RoomProcessorWaterPuzzle extends GeneralRoomProcessor { private boolean argumentsFulfilled = false; private WaterBoard waterBoard; - private OffsetPointSet doorsClosed; - private OffsetPointSet levers; - private OffsetPointSet frontBoard; - private OffsetPointSet backBoard; - private OffsetPoint water_lever; + private final OffsetPointSet doorsClosed; + private final OffsetPointSet levers; + private final OffsetPointSet frontBoard; + private final OffsetPointSet backBoard; + private final OffsetPoint water_lever; public RoomProcessorWaterPuzzle(DungeonRoom dungeonRoom) { super(dungeonRoom); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/WaterBoard.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/WaterBoard.java index dd70023e..d870fa7d 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/WaterBoard.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/waterpuzzle/WaterBoard.java @@ -20,22 +20,22 @@ public class WaterBoard { WaterNode[][] board; RoomProcessorWaterPuzzle waterPuzzle; - private OffsetPointSet frontPlate; - private OffsetPointSet backPlate; - private OffsetPointSet levers; - private OffsetPointSet doors; - private OffsetPoint lever; + private final OffsetPointSet frontPlate; + private final OffsetPointSet backPlate; + private final OffsetPointSet levers; + private final OffsetPointSet doors; + private final OffsetPoint lever; @Getter - private List<SwitchData> switchData = new ArrayList<SwitchData>(); + private final List<SwitchData> switchData = new ArrayList<SwitchData>(); @Getter - private Map<String, SwitchData> validSwitches = new HashMap<String, SwitchData>(); + private final Map<String, SwitchData> validSwitches = new HashMap<String, SwitchData>(); private WaterNodeStart waterNodeStart; - private Map<String, WaterNodeEnd> waterNodeEndMap = new HashMap<String, WaterNodeEnd>(); + private final Map<String, WaterNodeEnd> waterNodeEndMap = new HashMap<String, WaterNodeEnd>(); @Getter - private Map<String, WaterNode> toggleableMap = new HashMap<String, WaterNode>(); + private final Map<String, WaterNode> toggleableMap = new HashMap<String, WaterNode>(); @Getter private Set<String> reqOpen = new HashSet<String>(); @@ -253,7 +253,7 @@ public class WaterBoard { } else { int minDistToDropRight = 9999; for (int i = asd.getX(); i < asd.getX() + 8; i++) { - WaterNode nodehere = getNodeAt(i, asd.getY());; + WaterNode nodehere = getNodeAt(i, asd.getY()); if (nodehere == null) break; if (!nodehere.canWaterGoThrough()) break; if (!leverStates.contains(nodehere.getCondition()) && !nodehere.isWaterFilled(w)) break; |