Class GroundPathNavigation

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

public class GroundPathNavigation extends PathNavigation
  • Field Details

    • avoidSun

      private boolean avoidSun
  • 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 p_26475_, int p_26476_)
      Overrides:
      createPath in class PathNavigation
    • createPath

      public Path createPath(Entity p_26465_, int p_26466_)
      Overrides:
      createPath in class PathNavigation
    • getSurfaceY

      private int getSurfaceY()
    • trimPath

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

      protected boolean hasValidPathType(PathType p_326937_)
    • 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_)
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean p_255877_)