public class PathFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NodeProcessor |
nodeProcessor |
private Path |
path
The path being generated
|
private PathPoint[] |
pathOptions
Selection of path points to add to the path
|
Constructor and Description |
---|
PathFinder(NodeProcessor nodeProcessorIn) |
Modifier and Type | Method and Description |
---|---|
private PathEntity |
addToPath(Entity entityIn,
PathPoint pathpointStart,
PathPoint pathpointEnd,
float maxDistance)
Adds a path from start to end and returns the whole path
|
private PathEntity |
createEntityPath(PathPoint start,
PathPoint end)
Returns a new PathEntity for a given start and end point
|
PathEntity |
createEntityPathTo(IBlockAccess blockaccess,
Entity entityIn,
BlockPos targetPos,
float dist)
Creates a path from an entity to a specified location within a minimum distance
|
private PathEntity |
createEntityPathTo(IBlockAccess blockaccess,
Entity entityIn,
double x,
double y,
double z,
float distance)
Internal implementation of creating a path from an entity to a point
|
PathEntity |
createEntityPathTo(IBlockAccess blockaccess,
Entity entityFrom,
Entity entityTo,
float dist)
Creates a path from one entity to another within a minimum distance
|
private Path path
private PathPoint[] pathOptions
private NodeProcessor nodeProcessor
public PathFinder(NodeProcessor nodeProcessorIn)
public PathEntity createEntityPathTo(IBlockAccess blockaccess, Entity entityFrom, Entity entityTo, float dist)
public PathEntity createEntityPathTo(IBlockAccess blockaccess, Entity entityIn, BlockPos targetPos, float dist)
private PathEntity createEntityPathTo(IBlockAccess blockaccess, Entity entityIn, double x, double y, double z, float distance)
private PathEntity addToPath(Entity entityIn, PathPoint pathpointStart, PathPoint pathpointEnd, float maxDistance)
private PathEntity createEntityPath(PathPoint start, PathPoint end)