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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canMoveDirectly(Vec3 p_26469_, Vec3 p_26470_, int p_26471_, int p_26472_, int p_26473_)
boolean
boolean
protected boolean
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_)
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_)
createPath(BlockPos p_26475_, int p_26476_)
createPath(Entity p_26465_, int p_26466_)
protected PathFinder
createPathFinder(int p_26453_)
private int
protected Vec3
protected boolean
hasValidPathType(BlockPathTypes p_26467_)
void
setAvoidSun(boolean p_26491_)
void
setCanOpenDoors(boolean p_26478_)
void
setCanPassDoors(boolean p_148215_)
protected void
trimPath()
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:
createPathFinder
in classPathNavigation
-
canUpdatePath
protected boolean canUpdatePath()- Specified by:
canUpdatePath
in classPathNavigation
-
getTempMobPos
- Specified by:
getTempMobPos
in classPathNavigation
-
createPath
- Overrides:
createPath
in classPathNavigation
-
createPath
- Overrides:
createPath
in classPathNavigation
-
getSurfaceY
private int getSurfaceY() -
trimPath
protected void trimPath()- Overrides:
trimPath
in classPathNavigation
-
canMoveDirectly
protected boolean canMoveDirectly(Vec3 p_26469_, Vec3 p_26470_, int p_26471_, int p_26472_, int p_26473_)- Specified by:
canMoveDirectly
in 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_)
-