Class FollowParentGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FollowParentGoal
Direct Known Subclasses:
FoxEntity.FollowGoal

public class FollowParentGoal extends Goal
  • Field Details

    • animal

      private final AnimalEntity animal
    • parent

      private AnimalEntity parent
    • speedModifier

      private final double speedModifier
    • timeToRecalcPath

      private int timeToRecalcPath
  • Constructor Details

    • FollowParentGoal

      public FollowParentGoal(AnimalEntity p_i1626_1_, double p_i1626_2_)
  • 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