Search in sources :

Example 1 with HintArrow

use of org.powerbot.bot.rt6.client.HintArrow in project powerbot by powerbot.

the class HintArrows method get.

/**
 * {@inheritDoc}
 */
@Override
protected List<org.powerbot.script.rt6.HintArrow> get() {
    final List<org.powerbot.script.rt6.HintArrow> items = new ArrayList<org.powerbot.script.rt6.HintArrow>();
    final Client client = ctx.client();
    if (client == null) {
        return items;
    }
    final HintArrow[] arr = client.getHintArrows();
    for (final HintArrow arrow : arr != null ? arr : new HintArrow[0]) {
        if (arrow.isNull()) {
            items.add(new org.powerbot.script.rt6.HintArrow(ctx, arrow));
        }
    }
    return items;
}
Also used : HintArrow(org.powerbot.bot.rt6.client.HintArrow) ArrayList(java.util.ArrayList) Client(org.powerbot.bot.rt6.client.Client)

Aggregations

ArrayList (java.util.ArrayList)1 Client (org.powerbot.bot.rt6.client.Client)1 HintArrow (org.powerbot.bot.rt6.client.HintArrow)1