public class PathFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<PathPoint> |
closedSet |
private NodeProcessor |
nodeProcessor |
private PathHeap |
path |
private PathPoint[] |
pathOptions |
Constructor and Description |
---|
PathFinder(NodeProcessor processor) |
Modifier and Type | Method and Description |
---|---|
private Path |
createPath(PathPoint start,
PathPoint end) |
Path |
findPath(IBlockAccess worldIn,
EntityLiving entitylivingIn,
BlockPos targetPos,
float maxDistance) |
private Path |
findPath(IBlockAccess worldIn,
EntityLiving entitylivingIn,
double x,
double y,
double z,
float maxDistance) |
Path |
findPath(IBlockAccess worldIn,
EntityLiving entitylivingIn,
Entity targetEntity,
float maxDistance) |
private Path |
findPath(PathPoint pathFrom,
PathPoint pathTo,
float maxDistance) |
private final PathHeap path
private final java.util.Set<PathPoint> closedSet
private final PathPoint[] pathOptions
private final NodeProcessor nodeProcessor
public PathFinder(NodeProcessor processor)
@Nullable public Path findPath(IBlockAccess worldIn, EntityLiving entitylivingIn, Entity targetEntity, float maxDistance)
@Nullable public Path findPath(IBlockAccess worldIn, EntityLiving entitylivingIn, BlockPos targetPos, float maxDistance)
@Nullable private Path findPath(IBlockAccess worldIn, EntityLiving entitylivingIn, double x, double y, double z, float maxDistance)