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 pPos, int pAccuracy) Returns path to given BlockPoscreatePath
(Entity pEntity, int pAccuracy) Returns a path to the given entity or nullprotected PathFinder
createPathFinder
(int pMaxVisitedNodes) private int
protected Vec3
protected boolean
hasValidPathType
(PathType pPathType) void
setAvoidSun
(boolean pAvoidSun) void
setCanOpenDoors
(boolean pCanOpenDoors) void
setCanPassDoors
(boolean pCanPassDoors) void
setCanWalkOverFences
(boolean pCanWalkOverFences) 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 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)
-