aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-10 17:58:54 +0900
committersyeyoung <cyong06@naver.com>2021-02-10 17:58:54 +0900
commitb6a7d4231a245a4d0ba772761319bd180c44944d (patch)
treee253ed6275ef87426e3de5f9b5529e6bdeba7901 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
parent2223e55d5d9c61f4ab93d8dab0b5f9820272c8fe (diff)
downloadSkyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.tar.gz
Skyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.tar.bz2
Skyblock-Dungeons-Guide-b6a7d4231a245a4d0ba772761319bd180c44944d.zip
lots of things
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
index a2aee8da..0eb1906a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
@@ -3,12 +3,13 @@ package kr.syeyoung.dungeonsguide.dungeon.actions;
import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint;
import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom;
import lombok.Data;
+import net.minecraft.client.Minecraft;
import java.util.HashSet;
import java.util.Set;
@Data
-public class ActionMove implements Action {
+public class ActionMove extends AbstractAction {
private Set<Action> preRequisite = new HashSet<Action>();
private OffsetPoint target;
@@ -21,6 +22,11 @@ public class ActionMove implements Action {
return preRequisite;
}
+ @Override
+ public boolean isComplete(DungeonRoom dungeonRoom) {
+ return target.getBlockPos(dungeonRoom).distanceSq(Minecraft.getMinecraft().thePlayer.getPosition()) < 10;
+ }
+
@Override
public String toString() {