public class SwimNodeProcessor extends NodeProcessor
blockaccess, entitySizeX, entitySizeY, entitySizeZ, pointMap
Constructor and Description |
---|
SwimNodeProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
findPathOptions(PathPoint[] pathOptions,
Entity entityIn,
PathPoint currentPoint,
PathPoint targetPoint,
float maxDistance) |
PathPoint |
getPathPointTo(Entity entityIn)
Returns given entity's position as PathPoint
|
PathPoint |
getPathPointToCoords(Entity entityIn,
double x,
double y,
double target)
Returns PathPoint for given coordinates
|
void |
initProcessor(IBlockAccess iblockaccessIn,
Entity entityIn) |
void |
postProcess()
This method is called when all nodes have been processed and PathEntity is created.
|
openPoint
public void initProcessor(IBlockAccess iblockaccessIn, Entity entityIn)
initProcessor
in class NodeProcessor
public void postProcess()
WalkNodeProcessor
uses this to change its field avoidsWater
postProcess
in class NodeProcessor
public PathPoint getPathPointTo(Entity entityIn)
getPathPointTo
in class NodeProcessor
public PathPoint getPathPointToCoords(Entity entityIn, double x, double y, double target)
getPathPointToCoords
in class NodeProcessor
public int findPathOptions(PathPoint[] pathOptions, Entity entityIn, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
findPathOptions
in class NodeProcessor