aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0148-Mob-Pathfinding-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0148-Mob-Pathfinding-API.patch')
-rw-r--r--patches/api/0148-Mob-Pathfinding-API.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/patches/api/0148-Mob-Pathfinding-API.patch b/patches/api/0148-Mob-Pathfinding-API.patch
index ebd31df062..83fb575817 100644
--- a/patches/api/0148-Mob-Pathfinding-API.patch
+++ b/patches/api/0148-Mob-Pathfinding-API.patch
@@ -13,10 +13,10 @@ You can use EntityPathfindEvent to cancel new pathfinds from overriding your cur
diff --git a/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
new file mode 100644
-index 0000000000000000000000000000000000000000..43f062257472a06e9e64c2feef6c3b1012aee00e
+index 0000000000000000000000000000000000000000..3c1e2c93d923a683cc0455af77c43784ef12270e
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
-@@ -0,0 +1,212 @@
+@@ -0,0 +1,220 @@
+package com.destroystokyo.paper.entity;
+
+import org.bukkit.Location;
@@ -227,6 +227,14 @@ index 0000000000000000000000000000000000000000..43f062257472a06e9e64c2feef6c3b10
+ * @return The closest point the path can get to the target location
+ */
+ @Nullable Location getFinalPoint();
++
++ /**
++ * Checks whether the final point can be reached
++ *
++ * @return whether the final point can be reached
++ * @see #getFinalPoint()
++ */
++ boolean canReachFinalPoint();
+ }
+}
diff --git a/src/main/java/org/bukkit/entity/Mob.java b/src/main/java/org/bukkit/entity/Mob.java