Mob Pathfinding API
Implements Pathfinding API for mobs == AT == public net.minecraft.world.entity.ai.navigation.PathNavigation pathFinder public net.minecraft.world.level.pathfinder.PathFinder nodeEvaluator public net.minecraft.world.level.pathfinder.Path nodes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
--- a/net/minecraft/world/level/pathfinder/Path.java
|
||||
+++ b/net/minecraft/world/level/pathfinder/Path.java
|
||||
@@ -18,6 +18,7 @@
|
||||
private final BlockPos target;
|
||||
private final float distToTarget;
|
||||
private final boolean reached;
|
||||
+ public boolean hasNext() { return getNextNodeIndex() < this.nodes.size(); } // Paper - Mob Pathfinding API
|
||||
|
||||
public Path(List<Node> nodes, BlockPos target, boolean reachesTarget) {
|
||||
this.nodes = nodes;
|
||||
Reference in New Issue
Block a user