Interface RangedAttackAgainstAgentGoal
An
Goal
which uses the ranging aspect of the Ranger to attack
the target.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
builder()
Creates a newRangedAttackAgainstAgentGoal.Builder
to build a newRangedAttackAgainstAgentGoal
.Gets the delay in ticks between attempts to attack the targetedEntity
.double
Gets the movement speed modifier for moving towards a targetedEntity
.setAttackRadius
(float radius) setDelayBetweenAttacks
(Ticks delay) The time, in ticks, thisRanger
will wait before attacking again.setMoveSpeed
(double speed) Sets the movement speed modifier for moving towards a targetedEntity
.Methods inherited from interface org.spongepowered.api.entity.ai.goal.Goal
canBeInterrupted, canRunConcurrentWith, executor, owner, type
-
Method Details
-
builder
Creates a newRangedAttackAgainstAgentGoal.Builder
to build a newRangedAttackAgainstAgentGoal
.- Returns:
- A new builder
-
moveSpeed
double moveSpeed()Gets the movement speed modifier for moving towards a targetedEntity
.- Returns:
- The movement speed modifier
-
setMoveSpeed
Sets the movement speed modifier for moving towards a targetedEntity
.- Parameters:
speed
- The movement speed modifier- Returns:
- This goal, for chaining
-
delayBetweenAttacks
Ticks delayBetweenAttacks()Gets the delay in ticks between attempts to attack the targetedEntity
.- Returns:
- The delay in ticks between attempts to attack
-
setDelayBetweenAttacks
The time, in ticks, thisRanger
will wait before attacking again.- Parameters:
delay
- The delay, in ticks- Returns:
- This goal, for chaining
-
attackRadius
float attackRadius()- Returns:
- The radius of which the owning entity will attempt to attack
-
setAttackRadius
- Parameters:
radius
- The radius of which the owning entity will attempt to attack- Returns:
- This goal, for chaining
-