Interface RunAroundLikeCrazyGoal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRunAroundLikeCrazyGoal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RunAroundLikeCrazyGoal.Builderbuilder()Creates a newRunAroundLikeCrazyGoal.Builderto build a newRunAroundLikeCrazyGoal.RunAroundLikeCrazyGoalsetSpeed(double speed)Sets the speed modifier at which when anEntityis running around, the movement speed is amplified by this modifier.doublespeed()Gets the speed modifier at which when anEntityis 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.Builderto build a newRunAroundLikeCrazyGoal.- Returns:
- A new builder
-
speed
double speed()
Gets the speed modifier at which when anEntityis 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 anEntityis 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
-
-