public class PathNavigateGround extends PathNavigate
Modifier and Type | Field and Description |
---|---|
protected WalkNodeProcessor |
nodeProcessor |
currentPath, speed, theEntity, worldObj
Constructor and Description |
---|
PathNavigateGround(EntityLiving entitylivingIn,
World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canNavigate()
If on ground or swimming and can swim
|
boolean |
getAvoidsWater() |
boolean |
getCanSwim() |
boolean |
getEnterDoors() |
protected Vec3 |
getEntityPosition() |
protected PathFinder |
getPathFinder() |
protected boolean |
isDirectPathBetweenPoints(Vec3 posVec31,
Vec3 posVec32,
int sizeX,
int sizeY,
int sizeZ)
Returns true when an entity of specified size could safely walk in a straight line between the two points.
|
protected void |
removeSunnyPath()
Trims path data from the end to the first sun covered block
|
void |
setAvoidSun(boolean par1) |
void |
setAvoidsWater(boolean avoidsWater) |
void |
setBreakDoors(boolean canBreakDoors) |
void |
setCanSwim(boolean canSwim) |
void |
setEnterDoors(boolean par1) |
checkForStuck, clearPathEntity, getPath, getPathSearchRange, getPathToEntityLiving, getPathToPos, getPathToXYZ, isInLiquid, noPath, onUpdateNavigation, pathFollow, setHeightRequirement, setPath, setSpeed, tryMoveToEntityLiving, tryMoveToXYZ
protected WalkNodeProcessor nodeProcessor
public PathNavigateGround(EntityLiving entitylivingIn, World worldIn)
protected PathFinder getPathFinder()
getPathFinder
in class PathNavigate
protected boolean canNavigate()
canNavigate
in class PathNavigate
protected Vec3 getEntityPosition()
getEntityPosition
in class PathNavigate
protected void removeSunnyPath()
removeSunnyPath
in class PathNavigate
protected boolean isDirectPathBetweenPoints(Vec3 posVec31, Vec3 posVec32, int sizeX, int sizeY, int sizeZ)
isDirectPathBetweenPoints
in class PathNavigate
public void setAvoidsWater(boolean avoidsWater)
public boolean getAvoidsWater()
public void setBreakDoors(boolean canBreakDoors)
public void setEnterDoors(boolean par1)
public boolean getEnterDoors()
public void setCanSwim(boolean canSwim)
public boolean getCanSwim()
public void setAvoidSun(boolean par1)