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 boolean
canMoveDirectly
(Vec3 p_262585_, Vec3 p_262682_) Checks if the specified entity can safely walk to the specified location.protected boolean
createPath
(Entity pEntity, int p_26431_) Returns a path to the given entity or nullprotected PathFinder
createPathFinder
(int p_26428_) protected Vec3
boolean
isStableDestination
(BlockPos pPos) void
setCanOpenDoors
(boolean pCanOpenDoors) void
tick()
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, setRequiredPathLength, setSpeedModifier, shouldRecomputePath, stop, trimPath, updatePathfinderMaxVisitedNodes
-
Constructor Details
-
FlyingPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinder
in classPathNavigation
-
canMoveDirectly
Description copied from class:PathNavigation
Checks if the specified entity can safely walk to the specified location.- Overrides:
canMoveDirectly
in classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigation
-
createPath
Returns a path to the given entity or null- Overrides:
createPath
in classPathNavigation
-
tick
public void tick()- Overrides:
tick
in classPathNavigation
-
setCanOpenDoors
public void setCanOpenDoors(boolean pCanOpenDoors) -
isStableDestination
- Overrides:
isStableDestination
in classPathNavigation
-