public class FlyingNodeProcessor extends WalkNodeProcessor
avoidsWater, currentEntity
blockaccess, canEnterDoors, canOpenDoors, canSwim, entity, entitySizeX, entitySizeY, entitySizeZ, pointMap
Constructor and Description |
---|
FlyingNodeProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
findPathOptions(PathPoint[] pathOptions,
PathPoint currentPoint,
PathPoint targetPoint,
float maxDistance) |
PathNodeType |
getPathNodeType(IBlockAccess blockaccessIn,
int x,
int y,
int z) |
PathNodeType |
getPathNodeType(IBlockAccess blockaccessIn,
int x,
int y,
int z,
EntityLiving entitylivingIn,
int xSize,
int ySize,
int zSize,
boolean canBreakDoorsIn,
boolean canEnterDoorsIn) |
PathPoint |
getPathPointToCoords(double x,
double y,
double z)
Returns PathPoint for given coordinates
|
PathPoint |
getStart() |
void |
init(IBlockAccess sourceIn,
EntityLiving mob) |
protected PathPoint |
openPoint(int x,
int y,
int z)
Returns a mapped point or creates and adds one
|
void |
postProcess()
This method is called when all nodes have been processed and PathEntity is created.
|
checkNeighborBlocks, getPathNodeType, getPathNodeTypeRaw
getCanEnterDoors, getCanOpenDoors, getCanSwim, setCanEnterDoors, setCanOpenDoors, setCanSwim
public void init(IBlockAccess sourceIn, EntityLiving mob)
init
in class WalkNodeProcessor
public void postProcess()
WalkNodeProcessor
uses this to change its field avoidsWater
postProcess
in class WalkNodeProcessor
public PathPoint getStart()
getStart
in class WalkNodeProcessor
public PathPoint getPathPointToCoords(double x, double y, double z)
getPathPointToCoords
in class WalkNodeProcessor
public int findPathOptions(PathPoint[] pathOptions, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
findPathOptions
in class WalkNodeProcessor
protected PathPoint openPoint(int x, int y, int z)
openPoint
in class NodeProcessor
public PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z, EntityLiving entitylivingIn, int xSize, int ySize, int zSize, boolean canBreakDoorsIn, boolean canEnterDoorsIn)
getPathNodeType
in class WalkNodeProcessor
public PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z)
getPathNodeType
in class WalkNodeProcessor