Class GroundPathNavigation
java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.GroundPathNavigation
- Direct Known Subclasses:
Goat.GoatPathNavigation,Ravager.RavagerNavigation,Strider.StriderPathNavigation,WallClimberNavigation
-
Field Summary
FieldsFields 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 booleancanMoveDirectly(Vec3 p_26469_, Vec3 p_26470_, int p_26471_, int p_26472_, int p_26473_)booleanbooleanprotected booleanprivate booleancanWalkAbove(int p_26481_, int p_26482_, int p_26483_, int p_26484_, int p_26485_, int p_26486_, Vec3 p_26487_, double p_26488_, double p_26489_)private booleancanWalkOn(int p_26455_, int p_26456_, int p_26457_, int p_26458_, int p_26459_, int p_26460_, Vec3 p_26461_, double p_26462_, double p_26463_)createPath(BlockPos p_26475_, int p_26476_)createPath(Entity p_26465_, int p_26466_)protected PathFindercreatePathFinder(int p_26453_)private intprotected Vec3protected booleanhasValidPathType(BlockPathTypes p_26467_)voidsetAvoidSun(boolean p_26491_)voidsetCanOpenDoors(boolean p_26478_)voidsetCanPassDoors(boolean p_148215_)protected voidtrimPath()Methods inherited from class net.minecraft.world.entity.ai.navigation.PathNavigation
canFloat, createPath, createPath, createPath, createPath, createPath, createPath, doStuckDetection, followThePath, getMaxDistanceToWaypoint, 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
-
GroundPathNavigation
-
-
Method Details
-
createPathFinder
- Specified by:
createPathFinderin classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePathin classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPosin classPathNavigation
-
createPath
- Overrides:
createPathin classPathNavigation
-
createPath
- Overrides:
createPathin classPathNavigation
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPathin classPathNavigation
-
canMoveDirectly
protected boolean canMoveDirectly(Vec3 p_26469_, Vec3 p_26470_, int p_26471_, int p_26472_, int p_26473_)- Specified by:
canMoveDirectlyin classPathNavigation
-
canWalkOn
private boolean canWalkOn(int p_26455_, int p_26456_, int p_26457_, int p_26458_, int p_26459_, int p_26460_, Vec3 p_26461_, double p_26462_, double p_26463_) -
hasValidPathType
-
canWalkAbove
private boolean canWalkAbove(int p_26481_, int p_26482_, int p_26483_, int p_26484_, int p_26485_, int p_26486_, Vec3 p_26487_, double p_26488_, double p_26489_) -
setCanOpenDoors
public void setCanOpenDoors(boolean p_26478_) -
canPassDoors
public boolean canPassDoors() -
setCanPassDoors
public void setCanPassDoors(boolean p_148215_) -
canOpenDoors
public boolean canOpenDoors() -
setAvoidSun
public void setAvoidSun(boolean p_26491_)
-