public static interface Pathfinder.PathResult
Modifier and Type | Method | Description |
---|---|---|
@Nullable Location |
getFinalPoint() |
|
@Nullable Location |
getNextPoint() |
|
int |
getNextPointIndex() |
|
@NotNull List<Location> |
getPoints() |
All currently calculated points to follow along the path to reach the destination location
Will return points the entity has already moved past, see
getNextPointIndex() |
@NotNull @NotNull List<Location> getPoints()
getNextPointIndex()
int getNextPointIndex()
getPoints()
the entity
is trying to reach, or null if we are done with this pathfinding.@Nullable @Nullable Location getNextPoint()
@Nullable @Nullable Location getFinalPoint()
Copyright © 2020. All rights reserved.