| Modifier and Type | Interface and Description |
|---|---|
static interface |
AvoidEntityAITask.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AvoidEntityAITask.Builder |
builder()
Creates a new
AvoidEntityAITask.Builder for creating a new AvoidEntityAITask. |
double |
getCloseRangeSpeed()
|
double |
getFarRangeSpeed()
|
float |
getSearchDistance()
|
Predicate<Entity> |
getTargetSelector()
Gets the
Predicate for filtering which Entity instances
are qualified to have the owning Agent move away from the
Entity of which the Predicate.test(Object) returns
true. |
AvoidEntityAITask |
setCloseRangeSpeed(double speed)
|
AvoidEntityAITask |
setFarRangeSpeed(double speed)
|
AvoidEntityAITask |
setSearchDistance(float distance)
|
AvoidEntityAITask |
setTargetSelector(Predicate<Entity> predicate)
|
canBeInterrupted, canRunConcurrentWith, getGoal, getOwner, getTypestatic AvoidEntityAITask.Builder builder()
AvoidEntityAITask.Builder for creating a new AvoidEntityAITask.Predicate<Entity> getTargetSelector()
Predicate for filtering which Entity instances
are qualified to have the owning Agent move away from the
Entity of which the Predicate.test(Object) returns
true.AvoidEntityAITask setTargetSelector(Predicate<Entity> predicate)
Predicate for filtering which Entity instances
are considered to be "avoided" by the owning Agent.predicate - The predicatefloat getSearchDistance()
Entity instances in a
radius of the parent Agent are considered for avoiding.AvoidEntityAITask setSearchDistance(float distance)
Entity instances in a
radius of the parent Agent are considered for avoiding.distance - The search distancedouble getCloseRangeSpeed()
Agent will
move away from a found Entity to "avoid" when in close
range. Close range is currently defined as 7 blocks.AvoidEntityAITask setCloseRangeSpeed(double speed)
Agent will
move away from a found Entity to "avoid" when in close
range. Close range is currently defined as 7 blocks.speed - The movement speed modifierdouble getFarRangeSpeed()
Agent
will move away from a found Entity to "avoid" when in
a farther range than 7 blocks.AvoidEntityAITask setFarRangeSpeed(double speed)
Agent
will move away from a found Entity to "avoid" when in
a farther range than 7 blocks.speed - The movement speed modifier