Class MoveThroughVillageGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveThroughVillageGoal

public class MoveThroughVillageGoal extends Goal
  • Field Details

    • mob

      protected final PathfinderMob mob
    • speedModifier

      private final double speedModifier
    • path

      @Nullable private Path path
    • poiPos

      private BlockPos poiPos
    • onlyAtNight

      private final boolean onlyAtNight
    • visited

      private final List<BlockPos> visited
    • distanceToPoi

      private final int distanceToPoi
    • canDealWithDoors

      private final BooleanSupplier canDealWithDoors
  • Constructor Details

    • MoveThroughVillageGoal

      public MoveThroughVillageGoal(PathfinderMob p_25582_, double p_25583_, boolean p_25584_, int p_25585_, BooleanSupplier p_25586_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • hasNotVisited

      private boolean hasNotVisited(BlockPos p_25593_)
    • updateVisited

      private void updateVisited()