Class FollowParentGoal

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

public class FollowParentGoal
extends Goal
  • Field Details

    • animal

      private final AnimalEntity animal
    • parent

      private AnimalEntity parent
    • speed

      private final double speed
    • delay

      private int delay
  • Constructor Details

    • FollowParentGoal

      public FollowParentGoal​(AnimalEntity animal, double speed)
  • 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