public interface TargetAITask<A extends TargetAITask<A>> extends AITask<Creature>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TargetAITask.Builder<A extends TargetAITask<A>,B extends TargetAITask.Builder<A,B>> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onlyNearby()
|
A |
setCheckSight(boolean checkSight)
|
A |
setOnlyNearby(boolean nearby)
|
boolean |
shouldCheckSight()
|
canBeInterrupted, canRunConcurrentWith, getGoal, getOwner, getTypeboolean shouldCheckSight()
Agent can visibly "see" the
Entity being targeted such that any BlockTypes that
are visibly opaque will prevent the owning Agent from
targeting that Entity.A setCheckSight(boolean checkSight)
Agent can visibly "see" the
Entity being targeted such that any BlockTypes that
are visibly opaque will prevent the owning Agent from
targeting that Entity.checkSight - Whether line of sight is required to targetboolean onlyNearby()
A setOnlyNearby(boolean nearby)
nearby - Whether only nearby entities can be targeted