Class WaterBoundPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.WaterBoundPathNavigation
-
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 boolean
canMoveDirectly
(Vec3 p_186138_, Vec3 p_186139_) Checks if the specified entity can safely walk to the specified location.protected boolean
protected PathFinder
createPathFinder
(int p_26598_) protected double
getGroundY
(Vec3 p_186136_) protected Vec3
boolean
isStableDestination
(BlockPos pPos) void
setCanFloat
(boolean pCanSwim) Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canCutCorner, canFloat, createPath, createPath, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, isClearForMovementBetween, isDone, isInProgress, isStuck, moveTo, moveTo, moveTo, moveTo, recomputePath, resetMaxVisitedNodesMultiplier, setMaxVisitedNodesMultiplier, setRequiredPathLength, setSpeedModifier, shouldRecomputePath, stop, tick, trimPath, updatePathfinderMaxVisitedNodes
-
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
-
getGroundY
- Overrides:
getGroundY
in classPathNavigation
-
canMoveDirectly
Description copied from class:PathNavigation
Checks if the specified entity can safely walk to the specified location.- Overrides:
canMoveDirectly
in classPathNavigation
-
isStableDestination
- Overrides:
isStableDestination
in classPathNavigation
-
setCanFloat
public void setCanFloat(boolean pCanSwim) - Overrides:
setCanFloat
in classPathNavigation
-