Interface RandomWalkingGoal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RandomWalkingGoal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RandomWalkingGoal.Builder
builder()
Creates a newRandomWalkingGoal.Builder
to build a newRandomWalkingGoal
.int
executionChance()
Gets the chance that the owningEntity
will "wander".RandomWalkingGoal
setExecutionChance(int executionChance)
Sets the chance that the owningEntity
will perform a "wander".RandomWalkingGoal
setSpeed(double speed)
Sets the speed modifier at which the owningEntity
will move around to appear to "wander".double
speed()
Gets the speed modifier at which the owningEntity
will move around to appear to "wander".-
Methods inherited from interface org.spongepowered.api.entity.ai.goal.Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
-
-
-
Method Detail
-
builder
static RandomWalkingGoal.Builder builder()
Creates a newRandomWalkingGoal.Builder
to build a newRandomWalkingGoal
.- Returns:
- A new builder
-
speed
double speed()
Gets the speed modifier at which the owningEntity
will move around to appear to "wander".- Returns:
- The speed modifier
-
setSpeed
RandomWalkingGoal setSpeed(double speed)
Sets the speed modifier at which the owningEntity
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 owningEntity
will "wander".- Returns:
- The chance that the owning entity will "wander"
-
setExecutionChance
RandomWalkingGoal setExecutionChance(int executionChance)
Sets the chance that the owningEntity
will perform a "wander".- Parameters:
executionChance
- The wandering chance- Returns:
- This goal, for chaining
-
-