Interface SwimGoal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSwimGoal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SwimGoal.Builderbuilder()Creates a newSwimGoal.Builderto build a newSwimGoal.voidsetSwimChance(float chance)Sets the chance that the owningAgentwill perform a "jump".floatswimChance()Gets the chance that the owningAgentwill perform a "jump".-
Methods inherited from interface org.spongepowered.api.entity.ai.goal.Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
-
-
-
Method Detail
-
builder
static SwimGoal.Builder builder()
Creates a newSwimGoal.Builderto build a newSwimGoal.- Returns:
- A new builder
-
swimChance
float swimChance()
Gets the chance that the owningAgentwill perform a "jump". The chance is limited between0and1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".- Returns:
- The chance that the owning entity will "swim"
-
setSwimChance
void setSwimChance(float chance)
Sets the chance that the owningAgentwill perform a "jump". The chance is limited between0and1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".- Parameters:
chance- The chance that the entity will "swim"
-
-