Class StrollThroughVillageGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.StrollThroughVillageGoal
Direct Known Subclasses:
Fox.FoxStrollThroughVillageGoal

public class StrollThroughVillageGoal extends Goal
  • Field Details

    • DISTANCE_THRESHOLD

      private static final int DISTANCE_THRESHOLD
      See Also:
    • mob

      private final PathfinderMob mob
    • interval

      private final int interval
    • wantedPos

      @Nullable private BlockPos wantedPos
  • Constructor Details

    • StrollThroughVillageGoal

      public StrollThroughVillageGoal(PathfinderMob p_25907_, int p_25908_)
  • Method Details

    • canUse

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

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

      public void tick()
      Overrides:
      tick in class Goal
    • moveRandomly

      private void moveRandomly()