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 boolean
avoidSun
-
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 boolean
canMoveDirectly(Vector3d p_75493_1_, Vector3d p_75493_2_, int p_75493_3_, int p_75493_4_, int p_75493_5_)
boolean
canOpenDoors()
protected boolean
canUpdatePath()
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_)
Path
createPath(Entity p_75494_1_, int p_75494_2_)
Path
createPath(BlockPos p_179680_1_, int p_179680_2_)
protected PathFinder
createPathFinder(int p_179679_1_)
private int
getSurfaceY()
protected Vector3d
getTempMobPos()
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
-
-
-
-
Method Detail
-
createPathFinder
protected PathFinder createPathFinder(int p_179679_1_)
- Specified by:
createPathFinder
in classPathNavigator
-
canUpdatePath
protected boolean canUpdatePath()
- Specified by:
canUpdatePath
in classPathNavigator
-
getTempMobPos
protected Vector3d getTempMobPos()
- Specified by:
getTempMobPos
in classPathNavigator
-
createPath
public Path createPath(BlockPos p_179680_1_, int p_179680_2_)
- Overrides:
createPath
in classPathNavigator
-
createPath
public Path createPath(Entity p_75494_1_, int p_75494_2_)
- 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
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_)
-
-