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.
|
openPointpublic void initProcessor(IBlockAccess iblockaccessIn, Entity entityIn)
initProcessor in class NodeProcessorpublic void postProcess()
WalkNodeProcessor uses this to change its field avoidsWaterpostProcess in class NodeProcessorpublic PathPoint getPathPointTo(Entity entityIn)
getPathPointTo in class NodeProcessorpublic PathPoint getPathPointToCoords(Entity entityIn, double x, double y, double target)
getPathPointToCoords in class NodeProcessorpublic int findPathOptions(PathPoint[] pathOptions, Entity entityIn, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
findPathOptions in class NodeProcessor