Class FollowOwnerGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FollowOwnerGoal

public class FollowOwnerGoal extends Goal
  • Field Details

    • tamable

      private final TamableAnimal tamable
    • owner

      @Nullable private LivingEntity owner
    • speedModifier

      private final double speedModifier
    • timeToRecalcPath

      private int timeToRecalcPath
    • stopDistance

      private final float stopDistance
    • startDistance

      private final float startDistance
    • oldWaterCost

      private float oldWaterCost
  • Constructor Details

    • FollowOwnerGoal

      public FollowOwnerGoal(TamableAnimal p_25294_, double p_25295_, float p_25296_, float p_25297_)
  • 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