Package net.minecraft.pathfinding
Class GroundPathNavigator
java.lang.Object
net.minecraft.pathfinding.PathNavigator
net.minecraft.pathfinding.GroundPathNavigator
- Direct Known Subclasses:
ClimberPathNavigator,RavagerEntity.Navigator,StriderEntity.LavaPathNavigator
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanMoveDirectly(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_) booleanprotected booleanprivate booleancanWalkAbove(int p_179692_1_, int p_179692_2_, int p_179692_3_, int p_179692_4_, int p_179692_5_, int p_179692_6_, Vector3d p_179692_7_, double p_179692_8_, double p_179692_10_) private booleancanWalkOn(int p_179683_1_, int p_179683_2_, int p_179683_3_, int p_179683_4_, int p_179683_5_, int p_179683_6_, Vector3d p_179683_7_, double p_179683_8_, double p_179683_10_) createPath(Entity p_75494_1_, int p_75494_2_) createPath(BlockPos p_179680_1_, int p_179680_2_) protected PathFindercreatePathFinder(int p_179679_1_) private intprotected Vector3dprotected booleanhasValidPathType(PathNodeType p_230287_1_) voidsetAvoidSun(boolean p_179685_1_) voidsetCanOpenDoors(boolean p_179688_1_) protected voidtrimPath()Methods inherited from class net.minecraft.pathfinding.PathNavigator
canFloat, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getNodeEvaluator, getPath, getTargetPos, hasDelayedRecomputation, isDone, isInLiquid, isInProgress, isStableDestination, isStuck, moveTo, moveTo, moveTo, recomputePath, recomputePath, resetMaxVisitedNodesMultiplier, setCanFloat, setMaxVisitedNodesMultiplier, setSpeedModifier, stop, tick
-
Field Details
-
avoidSun
private boolean avoidSun
-
-
Constructor Details
-
GroundPathNavigator
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigator
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigator
-
createPath
- Overrides:
createPathin classPathNavigator
-
createPath
- Overrides:
createPathin classPathNavigator
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPathin 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
-
canWalkOn
private boolean canWalkOn(int p_179683_1_, int p_179683_2_, int p_179683_3_, int p_179683_4_, int p_179683_5_, int p_179683_6_, Vector3d p_179683_7_, double p_179683_8_, double p_179683_10_) -
hasValidPathType
-
canWalkAbove
private boolean canWalkAbove(int p_179692_1_, int p_179692_2_, int p_179692_3_, int p_179692_4_, int p_179692_5_, int p_179692_6_, Vector3d p_179692_7_, double p_179692_8_, double p_179692_10_) -
setCanOpenDoors
public void setCanOpenDoors(boolean p_179688_1_) -
canOpenDoors
public boolean canOpenDoors() -
setAvoidSun
public void setAvoidSun(boolean p_179685_1_)
-