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
    • targetPredicate

      private final Predicate<MobEntity> targetPredicate
    • target

      private MobEntity target
    • speed

      private final double speed
    • updateCountdownTicks

      private int updateCountdownTicks
    • minDistance

      private final float minDistance
    • oldWaterPathFindingPenalty

      private float oldWaterPathFindingPenalty
    • maxDistance

      private final float maxDistance
  • Constructor Details

    • FollowMobGoal

      public FollowMobGoal​(MobEntity mob, double speed, float minDistance, float maxDistance)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue 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