Class GroundPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.GroundPathNavigation
- Direct Known Subclasses:
Ravager.RavagerNavigation
,Strider.StriderPathNavigation
,WallClimberNavigation
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
protected boolean
createPath
(BlockPos p_26475_, int p_26476_) createPath
(Entity p_26465_, int p_26466_) protected PathFinder
createPathFinder
(int p_26453_) private int
protected Vec3
protected boolean
hasValidPathType
(BlockPathTypes p_26467_) void
setAvoidSun
(boolean p_26491_) void
setCanOpenDoors
(boolean p_26478_) void
setCanPassDoors
(boolean p_148215_) void
setCanWalkOverFences
(boolean p_255877_) protected void
trimPath()
Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canFloat, canMoveDirectly, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getGroundY, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, isClearForMovementBetween, isDone, isInLiquid, isInProgress, isStableDestination, isStuck, 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
- Overrides:
createPath
in classPathNavigation
-
createPath
- Overrides:
createPath
in classPathNavigation
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPath
in classPathNavigation
-
hasValidPathType
-
setCanOpenDoors
public void setCanOpenDoors(boolean p_26478_) -
canPassDoors
public boolean canPassDoors() -
setCanPassDoors
public void setCanPassDoors(boolean p_148215_) -
canOpenDoors
public boolean canOpenDoors() -
setAvoidSun
public void setAvoidSun(boolean p_26491_) -
setCanWalkOverFences
public void setCanWalkOverFences(boolean p_255877_)
-