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 CreatureEntity mob
    • speedModifier

      private final double speedModifier
    • path

      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(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, BooleanSupplier p_i50324_6_)
  • 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_220733_1_)
    • updateVisited

      private void updateVisited()