Interface RunAroundLikeCrazyGoal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RunAroundLikeCrazyGoal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RunAroundLikeCrazyGoal.Builder
builder()
Creates a newRunAroundLikeCrazyGoal.Builder
to build a newRunAroundLikeCrazyGoal
.RunAroundLikeCrazyGoal
setSpeed(double speed)
Sets the speed modifier at which when anEntity
is running around, the movement speed is amplified by this modifier.double
speed()
Gets the speed modifier at which when anEntity
is running around, the movement speed is amplified by this modifier.-
Methods inherited from interface org.spongepowered.api.entity.ai.goal.Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
-
-
-
Method Detail
-
builder
static RunAroundLikeCrazyGoal.Builder builder()
Creates a newRunAroundLikeCrazyGoal.Builder
to build a newRunAroundLikeCrazyGoal
.- Returns:
- A new builder
-
speed
double speed()
Gets the speed modifier at which when anEntity
is running around, the movement speed is amplified by this modifier.- Returns:
- The speed modifier
-
setSpeed
RunAroundLikeCrazyGoal setSpeed(double speed)
Sets the speed modifier at which when anEntity
is running around, the movement speed is amplified by this modifier.- Parameters:
speed
- The speed modifier at which an entity is "running around"- Returns:
- This goal, for chaining
-
-