Class FollowMobGoal

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

public class FollowMobGoal extends Goal
  • Field Details

    • mob

      private final Mob mob
    • followPredicate

      private final Predicate<Mob> followPredicate
    • followingMob

      private Mob followingMob
    • speedModifier

      private final double speedModifier
    • timeToRecalcPath

      private int timeToRecalcPath
    • stopDistance

      private final float stopDistance
    • oldWaterCost

      private float oldWaterCost
    • areaSize

      private final float areaSize
  • Constructor Details

    • FollowMobGoal

      public FollowMobGoal(Mob p_25271_, double p_25272_, float p_25273_, float p_25274_)
  • 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
    • tick

      public void tick()
      Overrides:
      tick in class Goal