Interface RandomWalkingGoal
- All Superinterfaces:
Goal<PathfinderAgent>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomWalkingGoal.Builderbuilder()Creates a newRandomWalkingGoal.Builderto build a newRandomWalkingGoal.intGets the chance that the owningEntitywill "wander".setExecutionChance(int executionChance) Sets the chance that the owningEntitywill perform a "wander".setSpeed(double speed) Sets the speed modifier at which the owningEntitywill move around to appear to "wander".doublespeed()Gets the speed modifier at which the owningEntitywill move around to appear to "wander".Methods inherited from interface Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
Method Details
-
builder
Creates a newRandomWalkingGoal.Builderto build a newRandomWalkingGoal.- Returns:
- A new builder
-
speed
double speed()Gets the speed modifier at which the owningEntitywill move around to appear to "wander".- Returns:
- The speed modifier
-
setSpeed
Sets the speed modifier at which the owningEntitywill 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 owningEntitywill "wander".- Returns:
- The chance that the owning entity will "wander"
-
setExecutionChance
Sets the chance that the owningEntitywill perform a "wander".- Parameters:
executionChance- The wandering chance- Returns:
- This goal, for chaining
-