Package net.minecraft.pathfinding
Class SwimmerPathNavigator
- java.lang.Object
-
- net.minecraft.pathfinding.PathNavigator
-
- net.minecraft.pathfinding.SwimmerPathNavigator
-
- Direct Known Subclasses:
TurtleEntity.Navigator
public class SwimmerPathNavigator extends PathNavigator
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowBreaching-
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
Constructors Constructor Description SwimmerPathNavigator(MobEntity p_i45873_1_, World p_i45873_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanMoveDirectly(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_)protected booleancanUpdatePath()protected PathFindercreatePathFinder(int p_179679_1_)protected voiddoStuckDetection(Vector3d p_179677_1_)protected voidfollowThePath()protected Vector3dgetTempMobPos()booleanisStableDestination(BlockPos p_188555_1_)voidsetCanFloat(boolean p_212239_1_)voidtick()-
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
-
-
-
-
Method Detail
-
createPathFinder
protected PathFinder createPathFinder(int p_179679_1_)
- Specified by:
createPathFinderin classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()
- Specified by:
canUpdatePathin classPathNavigator
-
getTempMobPos
protected Vector3d getTempMobPos()
- Specified by:
getTempMobPosin classPathNavigator
-
tick
public void tick()
- Overrides:
tickin classPathNavigator
-
followThePath
protected void followThePath()
- Overrides:
followThePathin classPathNavigator
-
doStuckDetection
protected void doStuckDetection(Vector3d p_179677_1_)
- Overrides:
doStuckDetectionin 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:
canMoveDirectlyin classPathNavigator
-
isStableDestination
public boolean isStableDestination(BlockPos p_188555_1_)
- Overrides:
isStableDestinationin classPathNavigator
-
setCanFloat
public void setCanFloat(boolean p_212239_1_)
- Overrides:
setCanFloatin classPathNavigator
-
-