getextPointIndex was not needing to be boxed/nullable

This commit is contained in:
Aikar 2018-09-09 14:36:51 -04:00
parent 0ae2903d8a
commit 75d51d6f9f
2 changed files with 4 additions and 5 deletions

View File

@ -11,7 +11,7 @@ the location.
diff --git a/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java 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 new file mode 100644
index 000000000..27b6bb696 index 000000000..78230bd28
--- /dev/null --- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java +++ b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
@@ -0,0 +0,0 @@ @@ -0,0 +0,0 @@
@ -175,7 +175,7 @@ index 000000000..27b6bb696
+ * @return Returns the index of the current point along the points returned in {@link #getPoints()} the entity + * @return Returns the index of the current point along the points returned in {@link #getPoints()} the entity
+ * is trying to reach, or null if we are done with this pathfinding. + * is trying to reach, or null if we are done with this pathfinding.
+ */ + */
+ @Nullable Integer getNextPointIndex(); + int getNextPointIndex();
+ +
+ /** + /**
+ * @return The next location in the path points the entity is trying to reach, or null if there is no next point + * @return The next location in the path points the entity is trying to reach, or null if there is no next point

View File

@ -7,7 +7,7 @@ Implements Pathfinding API for mobs
diff --git a/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java diff --git a/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java
new file mode 100644 new file mode 100644
index 0000000000..5062594d62 index 0000000000..d166bcdd28
--- /dev/null --- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java +++ b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java
@@ -0,0 +0,0 @@ @@ -0,0 +0,0 @@
@ -106,9 +106,8 @@ index 0000000000..5062594d62
+ return points; + return points;
+ } + }
+ +
+ @Nullable
+ @Override + @Override
+ public Integer getNextPointIndex() { + public int getNextPointIndex() {
+ return path.getNextIndex(); + return path.getNextIndex();
+ } + }
+ +