Class GroundPathNavigation

java.lang.Object
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.world.entity.ai.navigation.GroundPathNavigation
Direct Known Subclasses:
Creaking.CreakingPathNavigation, Strider.StriderPathNavigation, WallClimberNavigation

public class GroundPathNavigation extends PathNavigation
  • Field Details

    • avoidSun

      private boolean avoidSun
    • canPathToTargetsBelowSurface

      private boolean canPathToTargetsBelowSurface
  • Constructor Details

    • GroundPathNavigation

      public GroundPathNavigation(Mob p_26448_, Level p_26449_)
  • Method Details

    • createPathFinder

      protected PathFinder createPathFinder(int p_26453_)
      Specified by:
      createPathFinder in class PathNavigation
    • canUpdatePath

      protected boolean canUpdatePath()
      Specified by:
      canUpdatePath in class PathNavigation
    • getTempMobPos

      protected Vec3 getTempMobPos()
      Specified by:
      getTempMobPos in class PathNavigation
    • createPath

      public Path createPath(BlockPos pPos, int pAccuracy)
      Returns path to given BlockPos
      Overrides:
      createPath in class PathNavigation
    • findSurfacePosition

      final BlockPos findSurfacePosition(LevelChunk pChunk, BlockPos pPos, int pAccuracy)
    • createPath

      public Path createPath(Entity pEntity, int p_26466_)
      Returns a path to the given entity or null
      Overrides:
      createPath in class PathNavigation
    • getSurfaceY

      private int getSurfaceY()
    • trimPath

      protected void trimPath()
      Overrides:
      trimPath in class PathNavigation
    • canNavigateGround

      public boolean canNavigateGround()
      Specified by:
      canNavigateGround in class PathNavigation
    • hasValidPathType

      protected boolean hasValidPathType(PathType pPathType)
    • setAvoidSun

      public void setAvoidSun(boolean pAvoidSun)
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean pCanWalkOverFences)
    • setCanPathToTargetsBelowSurface

      public void setCanPathToTargetsBelowSurface(boolean pCanPathToTargetsBelowSurface)