use of org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask in project SpongeCommon by SpongePowered.
the class SpongeRangeAgentAIBuilder method build.
@Override
public RangeAgentAITask build(Ranger owner) {
checkNotNull(owner);
checkArgument(owner instanceof IRangedAttackMob, "Ranger must be an IRangedAttackMob!");
return (RangeAgentAITask) new EntityAIAttackRanged((IRangedAttackMob) owner, this.maxSpeed, this.delayBetweenAttacks, this.attackRadius);
}
Aggregations