public class PathNavigateGround extends PathNavigate
currentPath, nodeProcessor, speed, theEntity, world| 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 |
getCanSwim() |
boolean |
getEnterDoors() |
protected Vec3d |
getEntityPosition() |
protected PathFinder |
getPathFinder() |
Path |
getPathToEntityLiving(Entity entityIn)
Returns the path to the given EntityLiving.
|
Path |
getPathToPos(BlockPos pos)
Returns path to given BlockPos
|
protected boolean |
isDirectPathBetweenPoints(Vec3d posVec31,
Vec3d posVec32,
int sizeX,
int sizeY,
int sizeZ)
Checks if the specified entity can safely walk to the specified location.
|
protected void |
removeSunnyPath()
Trims path data from the end to the first sun covered block
|
void |
setAvoidSun(boolean avoidSun) |
void |
setBreakDoors(boolean canBreakDoors) |
void |
setCanSwim(boolean canSwim) |
void |
setEnterDoors(boolean enterDoors) |
canEntityStandOnPos, canUpdatePathOnTimeout, checkForStuck, clearPathEntity, getNodeProcessor, getPath, getPathSearchRange, getPathToXYZ, isInLiquid, noPath, onUpdateNavigation, pathFollow, setPath, setSpeed, tryMoveToEntityLiving, tryMoveToXYZ, updatePathpublic PathNavigateGround(EntityLiving entitylivingIn, World worldIn)
protected PathFinder getPathFinder()
getPathFinder in class PathNavigateprotected boolean canNavigate()
canNavigate in class PathNavigateprotected Vec3d getEntityPosition()
getEntityPosition in class PathNavigatepublic Path getPathToPos(BlockPos pos)
getPathToPos in class PathNavigatepublic Path getPathToEntityLiving(Entity entityIn)
getPathToEntityLiving in class PathNavigateprotected void removeSunnyPath()
removeSunnyPath in class PathNavigateprotected boolean isDirectPathBetweenPoints(Vec3d posVec31, Vec3d posVec32, int sizeX, int sizeY, int sizeZ)
isDirectPathBetweenPoints in class PathNavigatepublic void setBreakDoors(boolean canBreakDoors)
public void setEnterDoors(boolean enterDoors)
public boolean getEnterDoors()
public void setCanSwim(boolean canSwim)
public boolean getCanSwim()
public void setAvoidSun(boolean avoidSun)