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