public class WalkNodeProcessor extends NodeProcessor
| Modifier and Type | Field and Description |
|---|---|
protected float |
avoidsWater |
protected EntityLiving |
currentEntity |
blockaccess, canEnterDoors, canOpenDoors, canSwim, entity, entitySizeX, entitySizeY, entitySizeZ, pointMap| Constructor and Description |
|---|
WalkNodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
PathNodeType |
checkNeighborBlocks(IBlockAccess p_193578_1_,
int p_193578_2_,
int p_193578_3_,
int p_193578_4_,
PathNodeType p_193578_5_) |
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) |
PathNodeType |
getPathNodeType(IBlockAccess p_193577_1_,
int x,
int y,
int z,
int xSize,
int ySize,
int zSize,
boolean canOpenDoorsIn,
boolean canEnterDoorsIn,
java.util.EnumSet<PathNodeType> p_193577_10_,
PathNodeType p_193577_11_,
BlockPos p_193577_12_) |
protected PathNodeType |
getPathNodeTypeRaw(IBlockAccess p_189553_1_,
int p_189553_2_,
int p_189553_3_,
int p_189553_4_) |
PathPoint |
getPathPointToCoords(double x,
double y,
double z)
Returns PathPoint for given coordinates
|
PathPoint |
getStart() |
void |
init(IBlockAccess sourceIn,
EntityLiving mob) |
void |
postProcess()
This method is called when all nodes have been processed and PathEntity is created.
|
getCanEnterDoors, getCanOpenDoors, getCanSwim, openPoint, setCanEnterDoors, setCanOpenDoors, setCanSwimprotected float avoidsWater
protected EntityLiving currentEntity
public void init(IBlockAccess sourceIn, EntityLiving mob)
init in class NodeProcessorpublic void postProcess()
WalkNodeProcessor uses this to change its field avoidsWaterpostProcess in class NodeProcessorpublic PathPoint getStart()
getStart in class NodeProcessorpublic PathPoint getPathPointToCoords(double x, double y, double z)
getPathPointToCoords in class NodeProcessorpublic int findPathOptions(PathPoint[] pathOptions, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
findPathOptions 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 NodeProcessorpublic PathNodeType getPathNodeType(IBlockAccess p_193577_1_, int x, int y, int z, int xSize, int ySize, int zSize, boolean canOpenDoorsIn, boolean canEnterDoorsIn, java.util.EnumSet<PathNodeType> p_193577_10_, PathNodeType p_193577_11_, BlockPos p_193577_12_)
public PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z)
getPathNodeType in class NodeProcessorpublic PathNodeType checkNeighborBlocks(IBlockAccess p_193578_1_, int p_193578_2_, int p_193578_3_, int p_193578_4_, PathNodeType p_193578_5_)
protected PathNodeType getPathNodeTypeRaw(IBlockAccess p_189553_1_, int p_189553_2_, int p_189553_3_, int p_189553_4_)