Class WanderNearTargetGoal

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

public class WanderNearTargetGoal
extends Goal
  • Field Details

    • mob

      private final PathAwareEntity mob
    • target

      private LivingEntity target
    • x

      private double x
    • y

      private double y
    • z

      private double z
    • speed

      private final double speed
    • maxDistance

      private final float maxDistance
  • Constructor Details

    • WanderNearTargetGoal

      public WanderNearTargetGoal​(PathAwareEntity mob, double speed, float maxDistance)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

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

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

      public void start()
      Overrides:
      start in class Goal