Class RandomStrollGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.RandomStrollGoal
Direct Known Subclasses:
GolemRandomStrollInVillageGoal, MoveBackToVillageGoal, RandomSwimmingGoal, Silverfish.SilverfishMergeWithStoneGoal, Turtle.TurtleRandomStrollGoal, WaterAvoidingRandomStrollGoal

public class RandomStrollGoal extends Goal
  • Field Details

    • DEFAULT_INTERVAL

      public static final int DEFAULT_INTERVAL
      See Also:
    • mob

      protected final PathfinderMob mob
    • wantedX

      protected double wantedX
    • wantedY

      protected double wantedY
    • wantedZ

      protected double wantedZ
    • speedModifier

      protected final double speedModifier
    • interval

      protected int interval
    • forceTrigger

      protected boolean forceTrigger
    • checkNoActionTime

      private final boolean checkNoActionTime
  • Constructor Details

    • RandomStrollGoal

      public RandomStrollGoal(PathfinderMob p_25734_, double p_25735_)
    • RandomStrollGoal

      public RandomStrollGoal(PathfinderMob p_25737_, double p_25738_, int p_25739_)
    • RandomStrollGoal

      public RandomStrollGoal(PathfinderMob p_25741_, double p_25742_, int p_25743_, boolean p_25744_)
  • Method Details

    • canUse

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

      @Nullable protected Vec3 getPosition()
    • 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
    • trigger

      public void trigger()
    • setInterval

      public void setInterval(int p_25747_)