Interface SwimGoal
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SwimGoal.Builderbuilder()Creates a newSwimGoal.Builderto build a newSwimGoal.voidsetSwimChance(float chance) Sets the chance that the owningAgentwill perform a "jump".floatGets the chance that the owningAgentwill perform a "jump".Methods inherited from interface Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
Method Details
-
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"
-