Class FollowParentGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FollowParentGoal
Direct Known Subclasses:
Fox.FoxFollowParentGoal

public class FollowParentGoal extends Goal
  • Field Details

    • HORIZONTAL_SCAN_RANGE

      public static final int HORIZONTAL_SCAN_RANGE
      See Also:
      Constant Field Values
    • VERTICAL_SCAN_RANGE

      public static final int VERTICAL_SCAN_RANGE
      See Also:
      Constant Field Values
    • DONT_FOLLOW_IF_CLOSER_THAN

      public static final int DONT_FOLLOW_IF_CLOSER_THAN
      See Also:
      Constant Field Values
    • animal

      private final Animal animal
    • parent

      private Animal parent
    • speedModifier

      private final double speedModifier
    • timeToRecalcPath

      private int timeToRecalcPath
  • Constructor Details

    • FollowParentGoal

      public FollowParentGoal(Animal p_25319_, double p_25320_)
  • 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