Interface RandomWalkingGoal

All Superinterfaces:
Goal<PathfinderAgent>

public interface RandomWalkingGoal extends Goal<PathfinderAgent>
  • Method Details

    • builder

      static RandomWalkingGoal.Builder builder()
      Creates a new RandomWalkingGoal.Builder to build a new RandomWalkingGoal.
      Returns:
      A new builder
    • speed

      double speed()
      Gets the speed modifier at which the owning Entity will move around to appear to "wander".
      Returns:
      The speed modifier
    • setSpeed

      RandomWalkingGoal setSpeed(double speed)
      Sets the speed modifier at which the owning Entity will move around to appear to "wander".
      Parameters:
      speed - The movement speed modifier
      Returns:
      This goal, for chaining
    • executionChance

      int executionChance()
      Gets the chance that the owning Entity will "wander".
      Returns:
      The chance that the owning entity will "wander"
    • setExecutionChance

      RandomWalkingGoal setExecutionChance(int executionChance)
      Sets the chance that the owning Entity will perform a "wander".
      Parameters:
      executionChance - The wandering chance
      Returns:
      This goal, for chaining