public class GroundPathNavigator extends PathNavigator
| Modifier and Type | Field and Description |
|---|---|
private boolean |
shouldAvoidSun |
currentPath, entity, lastPosCheck, lastTimeoutCheck, lastTimeUpdated, maxDistanceToWaypoint, nodeProcessor, speed, ticksAtLastPos, timeoutCachedNode, timeoutLimit, timeoutTimer, totalTicks, tryUpdatePath, world| Constructor and Description |
|---|
GroundPathNavigator(MobEntity entitylivingIn,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canNavigate() |
boolean |
getEnterDoors() |
protected Vec3d |
getEntityPosition() |
private int |
getPathablePosY() |
protected PathFinder |
getPathFinder(int p_179679_1_) |
Path |
getPathToEntity(Entity entityIn,
int p_75494_2_) |
Path |
getPathToPos(BlockPos pos,
int p_179680_2_) |
protected boolean |
isDirectPathBetweenPoints(Vec3d posVec31,
Vec3d posVec32,
int sizeX,
int sizeY,
int sizeZ) |
private boolean |
isPositionClear(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
Vec3d p_179692_7_,
double p_179692_8_,
double p_179692_10_) |
private boolean |
isSafeToStandAt(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
Vec3d vec31,
double p_179683_8_,
double p_179683_10_) |
void |
setAvoidSun(boolean avoidSun) |
void |
setBreakDoors(boolean canBreakDoors) |
protected void |
trimPath() |
canEntityStandOnPos, canUpdatePathOnTimeout, checkForStuck, clearPath, func_220970_c, func_225463_a, func_225464_a, func_226337_n_, getCanSwim, getNodeProcessor, getPath, getPathToPos, getTargetPos, isInLiquid, noPath, pathFollow, resetRangeMultiplier, setCanSwim, setPath, setRangeMultiplier, setSpeed, tick, tryMoveToEntityLiving, tryMoveToXYZ, updatePathprotected PathFinder getPathFinder(int p_179679_1_)
getPathFinder in class PathNavigatorprotected boolean canNavigate()
canNavigate in class PathNavigatorprotected Vec3d getEntityPosition()
getEntityPosition in class PathNavigatorpublic Path getPathToPos(BlockPos pos, int p_179680_2_)
getPathToPos in class PathNavigatorpublic Path getPathToEntity(Entity entityIn, int p_75494_2_)
getPathToEntity in class PathNavigatorprivate int getPathablePosY()
protected void trimPath()
trimPath in class PathNavigatorprotected boolean isDirectPathBetweenPoints(Vec3d posVec31, Vec3d posVec32, int sizeX, int sizeY, int sizeZ)
isDirectPathBetweenPoints in class PathNavigatorprivate boolean isSafeToStandAt(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
Vec3d vec31,
double p_179683_8_,
double p_179683_10_)
private boolean isPositionClear(int x,
int y,
int z,
int sizeX,
int sizeY,
int sizeZ,
Vec3d p_179692_7_,
double p_179692_8_,
double p_179692_10_)
public void setBreakDoors(boolean canBreakDoors)
public boolean getEnterDoors()
public void setAvoidSun(boolean avoidSun)