Class MoveThroughVillageGoal


  • public class MoveThroughVillageGoal
    extends Goal
    • Field Detail

      • speedModifier

        private final double speedModifier
      • path

        private Path path
      • onlyAtNight

        private final boolean onlyAtNight
      • visited

        private final java.util.List<BlockPos> visited
      • distanceToPoi

        private final int distanceToPoi
      • canDealWithDoors

        private final java.util.function.BooleanSupplier canDealWithDoors
    • Constructor Detail

      • MoveThroughVillageGoal

        public MoveThroughVillageGoal​(CreatureEntity p_i50324_1_,
                                      double p_i50324_2_,
                                      boolean p_i50324_4_,
                                      int p_i50324_5_,
                                      java.util.function.BooleanSupplier p_i50324_6_)
    • Method Detail

      • canUse

        public boolean canUse()
        Specified by:
        canUse 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_220733_1_)
      • updateVisited

        private void updateVisited()