Class GroundPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.GroundPathNavigation
- Direct Known Subclasses:
Strider.StriderPathNavigation,WallClimberNavigation
-
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
hasDelayedRecomputation, lastStuckCheck, lastStuckCheckPos, lastTimeoutCheck, level, maxDistanceToWaypoint, mob, nodeEvaluator, path, speedModifier, tick, timeLastRecompute, timeoutCachedNode, timeoutLimit, timeoutTimer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected booleancreatePath(BlockPos pPos, int pAccuracy) Returns path to given BlockPoscreatePath(Entity pEntity, int pAccuracy) Returns a path to the given entity or nullprotected PathFindercreatePathFinder(int pMaxVisitedNodes) private intprotected Vec3protected booleanhasValidPathType(PathType pPathType) voidsetAvoidSun(boolean pAvoidSun) voidsetCanOpenDoors(boolean pCanOpenDoors) voidsetCanPassDoors(boolean pCanPassDoors) voidsetCanWalkOverFences(boolean pCanWalkOverFences) protected voidtrimPath()Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canCutCorner, canFloat, canMoveDirectly, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getGroundY, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, isClearForMovementBetween, isDone, isInProgress, isStableDestination, isStuck, moveTo, moveTo, moveTo, moveTo, recomputePath, resetMaxVisitedNodesMultiplier, setCanFloat, setMaxVisitedNodesMultiplier, setSpeedModifier, shouldRecomputePath, stop, tick
-
Field Details
-
avoidSun
private boolean avoidSun
-
-
Constructor Details
-
GroundPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigation
-
createPath
Returns path to given BlockPos- Overrides:
createPathin classPathNavigation
-
createPath
Returns a path to the given entity or null- Overrides:
createPathin classPathNavigation
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPathin classPathNavigation
-
hasValidPathType
-
setCanOpenDoors
public void setCanOpenDoors(boolean pCanOpenDoors) -
canPassDoors
public boolean canPassDoors() -
setCanPassDoors
public void setCanPassDoors(boolean pCanPassDoors) -
canOpenDoors
public boolean canOpenDoors() -
setAvoidSun
public void setAvoidSun(boolean pAvoidSun) -
setCanWalkOverFences
public void setCanWalkOverFences(boolean pCanWalkOverFences)
-