aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-11-15 18:20:28 +0900
committersyeyoung <cyoung06@naver.com>2022-11-15 22:35:11 +0900
commit0b4ce8c26a3126530599786d4a31c4bae44f7ec6 (patch)
tree5360891327afbea72cdaca0d3c0f563cb9a3e296 /mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data
parent846a2593242e98cb82e64f00382c3b607c93b7d3 (diff)
parent4ab5c2f66b0592600d14486ecf4d1628e6c856dc (diff)
downloadSkyblock-Dungeons-Guide-0b4ce8c26a3126530599786d4a31c4bae44f7ec6.tar.gz
Skyblock-Dungeons-Guide-0b4ce8c26a3126530599786d4a31c4bae44f7ec6.tar.bz2
Skyblock-Dungeons-Guide-0b4ce8c26a3126530599786d4a31c4bae44f7ec6.zip
- Merge Breaking changes.
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/DungeonRoomInfo.java6
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPoint.java21
2 files changed, 12 insertions, 15 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/DungeonRoomInfo.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/DungeonRoomInfo.java
index ef25fbe1..b3947637 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/DungeonRoomInfo.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/DungeonRoomInfo.java
@@ -18,7 +18,7 @@
package kr.syeyoung.dungeonsguide.dungeon.data;
-import kr.syeyoung.dungeonsguide.dungeon.mechanics.DungeonMechanic;
+import kr.syeyoung.dungeonsguide.dungeon.mechanics.dunegonmechanic.DungeonMechanic;
import lombok.Getter;
import lombok.Setter;
@@ -53,8 +53,8 @@ public class DungeonRoomInfo implements Serializable {
private String processorId = "default";
- private Map<String, Object> properties = new HashMap<String, Object>();
+ private Map<String, Object> properties = new HashMap<>();
- private Map<String, DungeonMechanic> mechanics = new HashMap<String, DungeonMechanic>();
+ private Map<String, DungeonMechanic> mechanics = new HashMap<>();
private int totalSecrets = -1;
}
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPoint.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPoint.java
index 180dd76d..747f44e8 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPoint.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPoint.java
@@ -18,8 +18,8 @@
package kr.syeyoung.dungeonsguide.dungeon.data;
-import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom;
-import kr.syeyoung.dungeonsguide.utils.VectorUtils;
+import kr.syeyoung.dungeonsguide.mod.dungeon.roomfinder.DungeonRoom;
+import kr.syeyoung.dungeonsguide.mod.utils.VectorUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import net.minecraft.block.Block;
@@ -63,25 +63,23 @@ public class OffsetPoint implements Cloneable, Serializable {
}
public BlockPos toRotatedRelBlockPos(DungeonRoom dungeonRoom) {
- int rot = dungeonRoom.getRoomMatcher().getRotation();
- Vector2d rot2 = new Vector2d(x,z);
+ Vector2d rot = new Vector2d(x,z);
for (int i = 0; i < dungeonRoom.getRoomMatcher().getRotation(); i++) {
- rot2 = VectorUtils.rotateCounterClockwise(rot2);
+ rot = VectorUtils.rotateCounterClockwise(rot);
if (i % 2 == 0) {
- rot2.y += dungeonRoom.getMax().getZ() - dungeonRoom.getMin().getZ() + 1; // + Z
+ rot.y += dungeonRoom.getMax().getZ() - dungeonRoom.getMin().getZ() + 1; // + Z
} else {
- rot2.y += dungeonRoom.getMax().getX() - dungeonRoom.getMin().getX() + 1; // + X
+ rot.y += dungeonRoom.getMax().getX() - dungeonRoom.getMin().getX() + 1; // + X
}
}
- return new BlockPos(rot2.x, y, rot2.y);
+ return new BlockPos(rot.x, y, rot.y);
}
public Block getBlock(DungeonRoom dungeonRoom) {
BlockPos relBp = toRotatedRelBlockPos(dungeonRoom);
- Block b = dungeonRoom.getRelativeBlockAt(relBp.getX(), relBp.getY(), relBp.getZ());
- return b;
+ return dungeonRoom.getRelativeBlockAt(relBp.getX(), relBp.getY(), relBp.getZ());
}
public BlockPos getBlockPos(DungeonRoom dungeonRoom) {
BlockPos relBp = toRotatedRelBlockPos(dungeonRoom);
@@ -91,8 +89,7 @@ public class OffsetPoint implements Cloneable, Serializable {
public int getData(DungeonRoom dungeonRoom) {
BlockPos relBp = toRotatedRelBlockPos(dungeonRoom);
- int b = dungeonRoom.getRelativeBlockDataAt(relBp.getX(), relBp.getY(), relBp.getZ());
- return b;
+ return dungeonRoom.getRelativeBlockDataAt(relBp.getX(), relBp.getY(), relBp.getZ());
}
@Override