Class FollowMobGoal

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

public class FollowMobGoal extends Goal
  • Field Details

    • mob

      private final MobEntity mob
    • followPredicate

      private final Predicate<MobEntity> followPredicate
    • followingMob

      private MobEntity 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(MobEntity p_i47417_1_, double p_i47417_2_, float p_i47417_4_, float p_i47417_5_)
  • 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