Class WanderAroundGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WanderAroundGoal
Direct Known Subclasses:
IronGolemWanderAroundGoal, SilverfishEntity.WanderAndInfestGoal, SwimAroundGoal, TurtleEntity.WanderOnLandGoal, WanderAroundFarGoal, WanderAroundPointOfInterestGoal

public class WanderAroundGoal
extends Goal
  • Field Details

    • mob

      protected final PathAwareEntity mob
    • targetX

      protected double targetX
    • targetY

      protected double targetY
    • targetZ

      protected double targetZ
    • speed

      protected final double speed
    • chance

      protected int chance
    • ignoringChance

      protected boolean ignoringChance
    • field_24463

      private boolean field_24463
  • Constructor Details

    • WanderAroundGoal

      public WanderAroundGoal​(PathAwareEntity mob, double speed)
    • WanderAroundGoal

      public WanderAroundGoal​(PathAwareEntity mob, double speed, int chance)
    • WanderAroundGoal

      public WanderAroundGoal​(PathAwareEntity pathAwareEntity, double double2, int int2, boolean bool)
  • Method Details

    • canStart

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

      @Nullable protected Vec3d getWanderTarget()
    • shouldContinue

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

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

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

      public void ignoreChanceOnce()
    • setChance

      public void setChance​(int chance)