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 TypeMethodDescriptionboolean
boolean
protected boolean
createPath
(BlockPos pos, int accuracy) Returns path to given BlockPoscreatePath
(Entity entity, int accuracy) Returns a path to the given entity or nullprotected PathFinder
createPathFinder
(int maxVisitedNodes) private int
protected Vec3
protected boolean
hasValidPathType
(PathType pathType) void
setAvoidSun
(boolean avoidSun) void
setCanOpenDoors
(boolean canOpenDoors) void
setCanPassDoors
(boolean canPassDoors) void
setCanWalkOverFences
(boolean canWalkOverFences) protected void
trimPath()
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:
createPathFinder
in classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigation
-
createPath
Returns path to given BlockPos- Overrides:
createPath
in classPathNavigation
-
createPath
Returns a path to the given entity or null- Overrides:
createPath
in classPathNavigation
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPath
in classPathNavigation
-
hasValidPathType
-
setCanOpenDoors
public void setCanOpenDoors(boolean canOpenDoors) -
canPassDoors
public boolean canPassDoors() -
setCanPassDoors
public void setCanPassDoors(boolean canPassDoors) -
canOpenDoors
public boolean canOpenDoors() -
setAvoidSun
public void setAvoidSun(boolean avoidSun) -
setCanWalkOverFences
public void setCanWalkOverFences(boolean canWalkOverFences)
-