public static interface AvoidEntityAITask.Builder extends AITaskBuilder<Creature,AvoidEntityAITask,AvoidEntityAITask.Builder>
Modifier and Type | Method and Description |
---|---|
AvoidEntityAITask.Builder |
closeRangeSpeed(double speed)
|
AvoidEntityAITask.Builder |
farRangeSpeed(double speed)
|
AvoidEntityAITask.Builder |
searchDistance(float distance)
|
AvoidEntityAITask.Builder |
targetSelector(Predicate<Entity> predicate)
|
build
from, reset
AvoidEntityAITask.Builder targetSelector(Predicate<Entity> predicate)
Predicate
for filtering which Entity
instances
are considered to be "avoided" by the owning Agent
.predicate
- The predicateAvoidEntityAITask.Builder searchDistance(float distance)
Entity
instances in a
radius of the parent Agent
are considered for avoiding.distance
- The search distanceAvoidEntityAITask.Builder closeRangeSpeed(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 modifierAvoidEntityAITask.Builder farRangeSpeed(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