use of net.runelite.rs.api.RSDeque in project runelite by runelite.
the class RSClientMixin method getProjectiles.
@Inject
@Override
public List<Projectile> getProjectiles() {
List<Projectile> projectiles = new ArrayList<Projectile>();
RSDeque projectileDeque = this.getProjectilesDeque();
Node head = projectileDeque.getHead();
for (Node node = head.getNext(); node != head; node = node.getNext()) {
projectiles.add((Projectile) node);
}
return projectiles;
}
Aggregations