Interface RangedAttackAgainstAgentGoal
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRangedAttackAgainstAgentGoal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description floatattackRadius()static RangedAttackAgainstAgentGoal.Builderbuilder()Creates a newRangedAttackAgainstAgentGoal.Builderto build a newRangedAttackAgainstAgentGoal.TicksdelayBetweenAttacks()Gets the delay in ticks between attempts to attack the targetedEntity.doublemoveSpeed()Gets the movement speed modifier for moving towards a targetedEntity.RangedAttackAgainstAgentGoalsetAttackRadius(float radius)RangedAttackAgainstAgentGoalsetDelayBetweenAttacks(Ticks delay)The time, in ticks, thisRangerwill wait before attacking again.RangedAttackAgainstAgentGoalsetMoveSpeed(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 Detail
-
builder
static RangedAttackAgainstAgentGoal.Builder builder()
Creates a newRangedAttackAgainstAgentGoal.Builderto 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
RangedAttackAgainstAgentGoal setMoveSpeed(double speed)
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
RangedAttackAgainstAgentGoal setDelayBetweenAttacks(Ticks delay)
The time, in ticks, thisRangerwill 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
RangedAttackAgainstAgentGoal setAttackRadius(float radius)
- Parameters:
radius- The radius of which the owning entity will attempt to attack- Returns:
- This goal, for chaining
-
-