Package net.minecraft.pathfinding
Class SwimmerPathNavigator
java.lang.Object
net.minecraft.pathfinding.PathNavigator
net.minecraft.pathfinding.SwimmerPathNavigator
- Direct Known Subclasses:
TurtleEntity.Navigator
-
Field Summary
Fields inherited from class net.minecraft.pathfinding.PathNavigator
hasDelayedRecomputation, lastStuckCheck, lastStuckCheckPos, lastTimeoutCheck, level, maxDistanceToWaypoint, mob, nodeEvaluator, path, speedModifier, tick, timeLastRecompute, timeoutCachedNode, timeoutLimit, timeoutTimer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canMoveDirectly
(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_) protected boolean
protected PathFinder
createPathFinder
(int p_179679_1_) protected void
doStuckDetection
(Vector3d p_179677_1_) protected void
protected Vector3d
boolean
isStableDestination
(BlockPos p_188555_1_) void
setCanFloat
(boolean p_212239_1_) void
tick()
Methods inherited from class net.minecraft.pathfinding.PathNavigator
canFloat, createPath, createPath, createPath, createPath, createPath, createPath, 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
-
SwimmerPathNavigator
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinder
in classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigator
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigator
-
tick
public void tick()- Overrides:
tick
in classPathNavigator
-
followThePath
protected void followThePath()- Overrides:
followThePath
in classPathNavigator
-
doStuckDetection
- Overrides:
doStuckDetection
in classPathNavigator
-
canMoveDirectly
protected boolean canMoveDirectly(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_) - Specified by:
canMoveDirectly
in classPathNavigator
-
isStableDestination
- Overrides:
isStableDestination
in classPathNavigator
-
setCanFloat
public void setCanFloat(boolean p_212239_1_) - Overrides:
setCanFloat
in classPathNavigator
-