public class WalkNodeProcessor extends NodeProcessor
blockaccess, entitySizeX, entitySizeY, entitySizeZ, pointMap
Constructor and Description |
---|
WalkNodeProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
findPathOptions(PathPoint[] pathOptions,
Entity entityIn,
PathPoint currentPoint,
PathPoint targetPoint,
float maxDistance) |
static int |
func_176170_a(IBlockAccess blockaccessIn,
Entity entityIn,
int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
boolean avoidWater,
boolean breakDoors,
boolean enterDoors) |
boolean |
getAvoidsWater() |
boolean |
getCanSwim() |
boolean |
getEnterDoors() |
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.
|
void |
setAvoidsWater(boolean avoidsWaterIn) |
void |
setBreakDoors(boolean canBreakDoorsIn) |
void |
setCanSwim(boolean canSwimIn) |
void |
setEnterDoors(boolean canEnterDoorsIn) |
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
public static int func_176170_a(IBlockAccess blockaccessIn, Entity entityIn, int x, int y, int z, int sizeX, int sizeY, int sizeZ, boolean avoidWater, boolean breakDoors, boolean enterDoors)
public void setEnterDoors(boolean canEnterDoorsIn)
public void setBreakDoors(boolean canBreakDoorsIn)
public void setAvoidsWater(boolean avoidsWaterIn)
public void setCanSwim(boolean canSwimIn)
public boolean getEnterDoors()
public boolean getCanSwim()
public boolean getAvoidsWater()