Class WaterBoundPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.WaterBoundPathNavigation
- Direct Known Subclasses:
Axolotl.AxolotlPathNavigation,Turtle.TurtlePathNavigation
-
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 TypeMethodDescriptionprotected booleancanMoveDirectly(Vec3 p_26602_, Vec3 p_26603_, int p_26604_, int p_26605_, int p_26606_)protected booleanprotected PathFindercreatePathFinder(int p_26598_)protected voiddoStuckDetection(Vec3 p_26600_)protected voidprotected Vec3booleanisStableDestination(BlockPos p_26608_)voidsetCanFloat(boolean p_26612_)voidtick()Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canFloat, createPath, createPath, createPath, createPath, createPath, createPath, createPath, createPath, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, hasDelayedRecomputation, isDone, isInLiquid, isInProgress, isStuck, moveTo, moveTo, moveTo, recomputePath, recomputePath, resetMaxVisitedNodesMultiplier, setMaxVisitedNodesMultiplier, setSpeedModifier, stop, trimPath
-
Field Details
-
allowBreaching
private boolean allowBreaching
-
-
Constructor Details
-
WaterBoundPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigation
-
tick
public void tick()- Overrides:
tickin classPathNavigation
-
followThePath
protected void followThePath()- Overrides:
followThePathin classPathNavigation
-
doStuckDetection
- Overrides:
doStuckDetectionin classPathNavigation
-
canMoveDirectly
protected boolean canMoveDirectly(Vec3 p_26602_, Vec3 p_26603_, int p_26604_, int p_26605_, int p_26606_)- Specified by:
canMoveDirectlyin classPathNavigation
-
isStableDestination
- Overrides:
isStableDestinationin classPathNavigation
-
setCanFloat
public void setCanFloat(boolean p_26612_)- Overrides:
setCanFloatin classPathNavigation
-