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) |
private int |
func_176186_b(Entity entityIn,
int x,
int y,
int z) |
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
|
private PathPoint |
getSafePoint(Entity entityIn,
int x,
int y,
int z)
Returns a point that the entity can safely move to
|
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 NodeProcessorprivate PathPoint getSafePoint(Entity entityIn, int x, int y, int z)
private int func_176186_b(Entity entityIn, int x, int y, int z)