Class FlyingPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.FlyingPathNavigation
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanMoveDirectly(Vec3 posVec31, Vec3 posVec32) Checks if the specified entity can safely walk to the specified location.booleanbooleanprotected booleancreatePath(Entity entity, int accuracy) Returns a path to the given entity or nullprotected PathFindercreatePathFinder(int maxVisitedNodes) protected Vec3booleanvoidsetCanOpenDoors(boolean canOpenDoors) voidsetCanPassDoors(boolean canEnterDoors) voidtick()Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canCutCorner, canFloat, createPath, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getGroundY, getMaxDistanceToWaypoint, getNodeEvaluator, getPath, getTargetPos, isClearForMovementBetween, isDone, isInProgress, isStuck, moveTo, moveTo, moveTo, moveTo, recomputePath, resetMaxVisitedNodesMultiplier, setCanFloat, setMaxVisitedNodesMultiplier, setSpeedModifier, shouldRecomputePath, stop, trimPath
-
Constructor Details
-
FlyingPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigation
-
canMoveDirectly
Checks if the specified entity can safely walk to the specified location.- Overrides:
canMoveDirectlyin classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigation
-
createPath
Returns a path to the given entity or null- Overrides:
createPathin classPathNavigation
-
tick
public void tick()- Overrides:
tickin classPathNavigation
-
setCanOpenDoors
public void setCanOpenDoors(boolean canOpenDoors) -
canPassDoors
public boolean canPassDoors() -
setCanPassDoors
public void setCanPassDoors(boolean canEnterDoors) -
canOpenDoors
public boolean canOpenDoors() -
isStableDestination
- Overrides:
isStableDestinationin classPathNavigation
-