Class RandomWalkingGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.RandomWalkingGoal
Direct Known Subclasses:
PatrolVillageGoal, RandomSwimmingGoal, ReturnToVillageGoal, SilverfishEntity.HideInStoneGoal, TurtleEntity.WanderGoal, WaterAvoidingRandomWalkingGoal

public class RandomWalkingGoal extends Goal
  • Field Details

    • mob

      protected final CreatureEntity 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 boolean checkNoActionTime
  • Constructor Details

    • RandomWalkingGoal

      public RandomWalkingGoal(CreatureEntity p_i1648_1_, double p_i1648_2_)
    • RandomWalkingGoal

      public RandomWalkingGoal(CreatureEntity p_i45887_1_, double p_i45887_2_, int p_i45887_4_)
    • RandomWalkingGoal

      public RandomWalkingGoal(CreatureEntity p_i231550_1_, double p_i231550_2_, int p_i231550_4_, boolean p_i231550_5_)
  • Method Details

    • canUse

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

      @Nullable protected Vector3d 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_179479_1_)