Class MoveThroughVillageGoal

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

public class MoveThroughVillageGoal
extends Goal
  • Field Details

    • mob

      protected final PathAwareEntity mob
    • speed

      private final double speed
    • targetPath

      private Path targetPath
    • target

      private BlockPos target
    • requiresNighttime

      private final boolean requiresNighttime
    • visitedTargets

      private final List<BlockPos> visitedTargets
    • distance

      private final int distance
    • doorPassingThroughGetter

      private final BooleanSupplier doorPassingThroughGetter
  • Constructor Details

    • MoveThroughVillageGoal

      public MoveThroughVillageGoal​(PathAwareEntity pathAwareEntity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

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

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

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

      private boolean shouldVisit​(BlockPos pos)
    • forgetOldTarget

      private void forgetOldTarget()