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

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
    • canMoveDirectly

      protected boolean canMoveDirectly(Vec3 p_26469_, Vec3 p_26470_, int p_26471_, int p_26472_, int p_26473_)
      Specified by:
      canMoveDirectly in class PathNavigation
    • 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

      protected boolean hasValidPathType(BlockPathTypes p_26467_)
    • 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_)