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
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 TypeMethodDescriptionprotected boolean
canMoveDirectly(Vec3 p_26602_, Vec3 p_26603_, int p_26604_, int p_26605_, int p_26606_)
protected boolean
protected PathFinder
createPathFinder(int p_26598_)
protected void
doStuckDetection(Vec3 p_26600_)
protected void
protected Vec3
boolean
isStableDestination(BlockPos p_26608_)
void
setCanFloat(boolean p_26612_)
void
tick()
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:
createPathFinder
in classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigation
-
tick
public void tick()- Overrides:
tick
in classPathNavigation
-
followThePath
protected void followThePath()- Overrides:
followThePath
in classPathNavigation
-
doStuckDetection
- Overrides:
doStuckDetection
in classPathNavigation
-
canMoveDirectly
protected boolean canMoveDirectly(Vec3 p_26602_, Vec3 p_26603_, int p_26604_, int p_26605_, int p_26606_)- Specified by:
canMoveDirectly
in classPathNavigation
-
isStableDestination
- Overrides:
isStableDestination
in classPathNavigation
-
setCanFloat
public void setCanFloat(boolean p_26612_)- Overrides:
setCanFloat
in classPathNavigation
-