Class AmphibiousPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.AmphibiousPathNavigation
- Direct Known Subclasses:
Frog.FrogPathNavigation, Turtle.TurtlePathNavigation
-
Field Summary
Fields inherited from class 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 startPos, Vec3 stopPos) Checks if the specified entity can safely walk to the specified location.booleanprotected booleanprotected PathFindercreatePathFinder(int maxVisitedNodes) protected doublegetGroundY(Vec3 target) protected Vec3booleanvoidsetCanFloat(boolean canFloat) Methods inherited from class 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, setCanOpenDoors, setMaxVisitedNodesMultiplier, setRequiredPathLength, setSpeedModifier, shouldRecomputePath, stop, tick, trimPath, updatePathfinderMaxVisitedNodes
-
Constructor Details
-
AmphibiousPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigation
-
getGroundY
- Overrides:
getGroundYin classPathNavigation
-
canMoveDirectly
Description copied from class:PathNavigationChecks if the specified entity can safely walk to the specified location.- Overrides:
canMoveDirectlyin classPathNavigation
-
isStableDestination
- Overrides:
isStableDestinationin classPathNavigation
-
setCanFloat
public void setCanFloat(boolean canFloat) - Overrides:
setCanFloatin classPathNavigation
-