use of org.powerbot.bot.rt6.client.Projectile in project powerbot by powerbot.
the class Projectiles method get.
/**
* {@inheritDoc}
*/
@Override
protected List<org.powerbot.script.rt6.Projectile> get() {
final List<org.powerbot.script.rt6.Projectile> items = new ArrayList<org.powerbot.script.rt6.Projectile>();
final Client client = ctx.client();
if (client == null) {
return items;
}
for (final ProjectileNode n : NodeQueue.get(client.getProjectileDeque(), ProjectileNode.class)) {
final Projectile p = n.getProjectile();
if (!p.isNull()) {
items.add(new org.powerbot.script.rt6.Projectile(ctx, p));
}
}
return items;
}
Aggregations