public interface Pathfinder
| Modifier and Type | Interface | Description | 
|---|---|---|
| static interface  | Pathfinder.PathResult | Represents the result of a pathfinding calculation | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Pathfinder.PathResult | findPath(LivingEntity target) | Calculates a destination for the Entity to navigate to to reach the target entity,
 but does not set it as the current target. | 
| Pathfinder.PathResult | findPath(Location loc) | Calculates a destination for the Entity to navigate to, but does not set it
 as the current target. | 
| Pathfinder.PathResult | getCurrentPath() | |
| Mob | getEntity() | |
| boolean | hasPath() | If the entity is currently trying to navigate to a destination, this will return true | 
| default boolean | moveTo(Pathfinder.PathResult path) | Takes the result of a previous pathfinding calculation and sets it
 as the active pathfinding with default speed. | 
| boolean | moveTo(Pathfinder.PathResult path,
      double speed) | Takes the result of a previous pathfinding calculation and sets it
 as the active pathfinding, | 
| default boolean | moveTo(LivingEntity target) | Calculates a destination for the Entity to navigate to to reach the target entity,
 and sets it with default speed. | 
| default boolean | moveTo(LivingEntity target,
      double speed) | Calculates a destination for the Entity to navigate to to reach the target entity,
 and sets it with specified speed. | 
| default boolean | moveTo(Location loc) | Calculates a destination for the Entity to navigate to, and sets it with default speed
 as the current target. | 
| default boolean | moveTo(Location loc,
      double speed) | Calculates a destination for the Entity to navigate to, with desired speed
 as the current target. | 
| void | stopPathfinding() | Instructs the Entity to stop trying to navigate to its current desired location | 
@NotNull Mob getEntity()
void stopPathfinding()
boolean hasPath()
@Nullable Pathfinder.PathResult getCurrentPath()
@Nullable Pathfinder.PathResult findPath(@NotNull Location loc)
loc - Location to navigate to@Nullable Pathfinder.PathResult findPath(@NotNull LivingEntity target)
target - the Entity to navigate todefault boolean moveTo(@NotNull
                       Location loc)
loc - Location to navigate todefault boolean moveTo(@NotNull
                       Location loc,
                       double speed)
loc - Location to navigate tospeed - Speed multiplier to navigate at, where 1 is 'normal'default boolean moveTo(@NotNull
                       LivingEntity target)
target - the Entity to navigate todefault boolean moveTo(@NotNull
                       LivingEntity target,
                       double speed)
target - the Entity to navigate tospeed - Speed multiplier to navigate at, where 1 is 'normal'default boolean moveTo(@NotNull
                       Pathfinder.PathResult path)
path - The Path to start followingboolean moveTo(@NotNull
               Pathfinder.PathResult path,
               double speed)
path - The Path to start followingspeed - Speed multiplier to navigate at, where 1 is 'normal'Copyright © 2020. All rights reserved.