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
public class GroundPathNavigator extends PathNavigator
-
-
Field Summary
Fields Modifier and Type Field Description private booleanavoidSun-
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
Constructors Constructor Description GroundPathNavigator(MobEntity p_i45875_1_, World p_i45875_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanMoveDirectly(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_)booleancanOpenDoors()protected booleancanUpdatePath()private 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_)PathcreatePath(Entity p_75494_1_, int p_75494_2_)PathcreatePath(BlockPos p_179680_1_, int p_179680_2_)protected PathFindercreatePathFinder(int p_179679_1_)private intgetSurfaceY()protected Vector3dgetTempMobPos()protected 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
-
-
-
-
Method Detail
-
createPathFinder
protected PathFinder createPathFinder(int p_179679_1_)
- Specified by:
createPathFinderin classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()
- Specified by:
canUpdatePathin classPathNavigator
-
getTempMobPos
protected Vector3d getTempMobPos()
- Specified by:
getTempMobPosin classPathNavigator
-
createPath
public Path createPath(BlockPos p_179680_1_, int p_179680_2_)
- Overrides:
createPathin classPathNavigator
-
createPath
public Path createPath(Entity p_75494_1_, int p_75494_2_)
- 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
protected boolean hasValidPathType(PathNodeType p_230287_1_)
-
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_)
-
-