Class FollowMobGoal


  • public class FollowMobGoal
    extends Goal
    • Field Detail

      • followPredicate

        private final java.util.function.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 Detail

      • FollowMobGoal

        public FollowMobGoal​(MobEntity p_i47417_1_,
                             double p_i47417_2_,
                             float p_i47417_4_,
                             float p_i47417_5_)
    • Method Detail

      • canUse

        public boolean canUse()
        Specified by:
        canUse 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