use of org.powerbot.script.rt6.Projectile in project powerbot by powerbot.
the class DrawProjectiles method repaint.
@Override
public void repaint(final Graphics render) {
if (!ctx.game.loggedIn()) {
return;
}
for (final Projectile projectile : ctx.projectiles.select()) {
final Tile t = projectile.tile();
final TileMatrix m = new TileMatrix(ctx, t);
if (!m.valid()) {
continue;
}
m.bounds(new int[] { -128, 128, -256, 0, -128, 128 });
m.draw(render, 255);
}
}
Aggregations