public class PathNodeNavigator extends Object
Modifier and Type | Field and Description |
---|---|
private PathMinHeap |
minHeap |
private PathNodeMaker |
pathNodeMaker |
private int |
range |
private PathNode[] |
successors |
Constructor and Description |
---|
PathNodeNavigator(PathNodeMaker pathNodeMaker,
int range) |
Modifier and Type | Method and Description |
---|---|
private float |
calculateDistances(PathNode node,
Set<TargetPathNode> targets) |
private Path |
createPath(PathNode endNode,
BlockPos target,
boolean reachesTarget) |
Path |
findPathToAny(ChunkCache world,
MobEntity mob,
Set<BlockPos> positions,
float followRange,
int distance,
float rangeMultiplier) |
private Path |
findPathToAny(PathNode startNode,
Map<TargetPathNode,BlockPos> positions,
float followRange,
int distance,
float rangeMultiplier) |
private final PathNode[] successors
private final int range
private final PathNodeMaker pathNodeMaker
private final PathMinHeap minHeap
public PathNodeNavigator(PathNodeMaker pathNodeMaker, int range)
@Nullable public Path findPathToAny(ChunkCache world, MobEntity mob, Set<BlockPos> positions, float followRange, int distance, float rangeMultiplier)
@Nullable private Path findPathToAny(PathNode startNode, Map<TargetPathNode,BlockPos> positions, float followRange, int distance, float rangeMultiplier)
private float calculateDistances(PathNode node, Set<TargetPathNode> targets)