use of org.orcid.jaxb.model.v3.dev1.client.Client in project powerbot by powerbot.
the class HintArrow method valid.
@Override
public boolean valid() {
final Client client = ctx.client();
if (client == null) {
return false;
}
final org.powerbot.bot.rt6.client.HintArrow[] arr = client.getHintArrows();
return arrow.obj.get() != null && arr != null && Arrays.asList(arr).contains(arrow);
}
use of org.orcid.jaxb.model.v3.dev1.client.Client 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;
}
use of org.orcid.jaxb.model.v3.dev1.client.Client in project powerbot by powerbot.
the class Players method local.
public Player local() {
final Player r = new Player(ctx, null);
final Client client = ctx.client();
if (client == null) {
return r;
}
return new Player(ctx, client.getPlayer());
}
use of org.orcid.jaxb.model.v3.dev1.client.Client in project powerbot by powerbot.
the class Skills method realLevels.
public int[] realLevels() {
final Client c = ctx.client();
final int[] arr = c != null ? c.getSkillLevels2() : new int[0];
return arr != null ? arr : new int[0];
}
use of org.orcid.jaxb.model.v3.dev1.client.Client in project powerbot by powerbot.
the class Skills method levels.
public int[] levels() {
final Client c = ctx.client();
final int[] arr = c != null ? c.getSkillLevels1() : new int[0];
return arr != null ? arr : new int[0];
}
Aggregations