Class FollowOwnerGoal


  • public class FollowOwnerGoal
    extends Goal
    • Field Detail

      • speedModifier

        private final double speedModifier
      • timeToRecalcPath

        private int timeToRecalcPath
      • stopDistance

        private final float stopDistance
      • startDistance

        private final float startDistance
      • oldWaterCost

        private float oldWaterCost
      • canFly

        private final boolean canFly
    • Constructor Detail

      • FollowOwnerGoal

        public FollowOwnerGoal​(TameableEntity p_i225711_1_,
                               double p_i225711_2_,
                               float p_i225711_4_,
                               float p_i225711_5_,
                               boolean p_i225711_6_)
    • 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
      • teleportToOwner

        private void teleportToOwner()
      • maybeTeleportTo

        private boolean maybeTeleportTo​(int p_226328_1_,
                                        int p_226328_2_,
                                        int p_226328_3_)
      • canTeleportTo

        private boolean canTeleportTo​(BlockPos p_226329_1_)
      • randomIntInclusive

        private int randomIntInclusive​(int p_226327_1_,
                                       int p_226327_2_)