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
Fields inherited from class net.minecraft.pathfinding.PathNavigator
hasDelayedRecomputation, lastStuckCheck, lastStuckCheckPos, lastTimeoutCheck, level, maxDistanceToWaypoint, mob, nodeEvaluator, path, speedModifier, tick, timeLastRecompute, timeoutCachedNode, timeoutLimit, timeoutTimer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canMoveDirectly
(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_) boolean
protected boolean
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_) 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_) createPath
(Entity p_75494_1_, int p_75494_2_) createPath
(BlockPos p_179680_1_, int p_179680_2_) protected PathFinder
createPathFinder
(int p_179679_1_) private int
protected Vector3d
protected boolean
hasValidPathType
(PathNodeType p_230287_1_) void
setAvoidSun
(boolean p_179685_1_) void
setCanOpenDoors
(boolean p_179688_1_) protected void
trimPath()
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:
createPathFinder
in classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigator
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigator
-
createPath
- Overrides:
createPath
in classPathNavigator
-
createPath
- Overrides:
createPath
in classPathNavigator
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPath
in 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:
canMoveDirectly
in 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_)
-