Class MoveTowardsTargetGoal

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

public class MoveTowardsTargetGoal extends Goal
  • Field Details

    • mob

      private final PathfinderMob mob
    • target

      private LivingEntity target
    • wantedX

      private double wantedX
    • wantedY

      private double wantedY
    • wantedZ

      private double wantedZ
    • speedModifier

      private final double speedModifier
    • within

      private final float within
  • Constructor Details

    • MoveTowardsTargetGoal

      public MoveTowardsTargetGoal(PathfinderMob p_25646_, double p_25647_, float p_25648_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal