Modifier and Type | Interface and Description |
---|---|
static interface |
RangeAgentAITask.Builder |
Modifier and Type | Method and Description |
---|---|
static RangeAgentAITask.Builder |
builder()
Creates a new
RangeAgentAITask.Builder to build a new RangeAgentAITask . |
float |
getAttackRadius()
|
int |
getDelayBetweenAttacks()
Gets the delay in ticks between attempts to attack the targeted
Entity . |
double |
getMoveSpeed()
Gets the movement speed modifier for moving towards a targeted
Entity . |
RangeAgentAITask |
setAttackRadius(float radius)
|
RangeAgentAITask |
setDelayBetweenAttacks(int delay)
The time, in ticks, this
Ranger will wait before attacking
again. |
RangeAgentAITask |
setMoveSpeed(double speed)
Sets the movement speed modifier for moving towards a targeted
Entity . |
canBeInterrupted, canRunConcurrentWith, getGoal, getOwner, getType
static RangeAgentAITask.Builder builder()
RangeAgentAITask.Builder
to build a new RangeAgentAITask
.double getMoveSpeed()
Entity
.RangeAgentAITask setMoveSpeed(double speed)
Entity
.speed
- The movement speed modifierint getDelayBetweenAttacks()
Entity
.RangeAgentAITask setDelayBetweenAttacks(int delay)
Ranger
will wait before attacking
again.delay
- The delay, in ticksfloat getAttackRadius()
RangeAgentAITask setAttackRadius(float radius)
radius
- The radius of which the owning entity will attempt to
attack