Class MoveTowardsTargetGoal

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

public class MoveTowardsTargetGoal extends Goal
  • Field Details

    • mob

      private final CreatureEntity 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(CreatureEntity p_i1640_1_, double p_i1640_2_, float p_i1640_4_)
  • 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