public abstract class NodeProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IBlockAccess |
blockaccess |
protected boolean |
canEnterDoors |
protected boolean |
canOpenDoors |
protected boolean |
canSwim |
protected EntityLiving |
entity |
protected int |
entitySizeX |
protected int |
entitySizeY |
protected int |
entitySizeZ |
protected IntHashMap<PathPoint> |
pointMap |
Constructor and Description |
---|
NodeProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract int |
findPathOptions(PathPoint[] pathOptions,
PathPoint currentPoint,
PathPoint targetPoint,
float maxDistance) |
boolean |
getCanEnterDoors() |
boolean |
getCanOpenDoors() |
boolean |
getCanSwim() |
abstract PathNodeType |
getPathNodeType(IBlockAccess blockaccessIn,
int x,
int y,
int z) |
abstract PathNodeType |
getPathNodeType(IBlockAccess blockaccessIn,
int x,
int y,
int z,
EntityLiving entitylivingIn,
int xSize,
int ySize,
int zSize,
boolean canBreakDoorsIn,
boolean canEnterDoorsIn) |
abstract PathPoint |
getPathPointToCoords(double x,
double y,
double z) |
abstract PathPoint |
getStart() |
void |
init(IBlockAccess sourceIn,
EntityLiving mob) |
protected PathPoint |
openPoint(int x,
int y,
int z) |
void |
postProcess() |
void |
setCanEnterDoors(boolean canEnterDoorsIn) |
void |
setCanOpenDoors(boolean canOpenDoorsIn) |
void |
setCanSwim(boolean canSwimIn) |
protected IBlockAccess blockaccess
protected EntityLiving entity
protected final IntHashMap<PathPoint> pointMap
protected int entitySizeX
protected int entitySizeY
protected int entitySizeZ
protected boolean canEnterDoors
protected boolean canOpenDoors
protected boolean canSwim
public void init(IBlockAccess sourceIn, EntityLiving mob)
public void postProcess()
protected PathPoint openPoint(int x, int y, int z)
public abstract PathPoint getStart()
public abstract PathPoint getPathPointToCoords(double x, double y, double z)
public abstract int findPathOptions(PathPoint[] pathOptions, PathPoint currentPoint, PathPoint targetPoint, float maxDistance)
public abstract PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z, EntityLiving entitylivingIn, int xSize, int ySize, int zSize, boolean canBreakDoorsIn, boolean canEnterDoorsIn)
public abstract PathNodeType getPathNodeType(IBlockAccess blockaccessIn, int x, int y, int z)
public void setCanEnterDoors(boolean canEnterDoorsIn)
public void setCanOpenDoors(boolean canOpenDoorsIn)
public void setCanSwim(boolean canSwimIn)
public boolean getCanEnterDoors()
public boolean getCanOpenDoors()
public boolean getCanSwim()