public class FlyingNodeProcessor extends WalkNodeProcessor
avoidsWater, currentEntityblockaccess, 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, getPathNodeTypeRawgetCanEnterDoors, getCanOpenDoors, getCanSwim, setCanEnterDoors, setCanOpenDoors, setCanSwimpublic void init(IBlockAccess sourceIn, EntityLiving mob)
init in class WalkNodeProcessorpublic void postProcess()
WalkNodeProcessor uses this to change its field avoidsWaterpostProcess in class WalkNodeProcessorpublic PathPoint getStart()
getStart in class WalkNodeProcessorpublic PathPoint getPathPointToCoords(double x, double y, double z)
getPathPointToCoords in class WalkNodeProcessorpublic int findPathOptions(PathPoint[] pathOptions, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
findPathOptions in class WalkNodeProcessorprotected PathPoint openPoint(int x, int y, int z)
openPoint in class NodeProcessorpublic 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 WalkNodeProcessorpublic PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z)
getPathNodeType in class WalkNodeProcessor