Examples of RSGroundItem


Examples of org.rsbot.script.wrappers.RSGroundItem

    int dist = Integer.MAX_VALUE;
    final int pX = methods.players.getMyPlayer().getLocation().getX();
    final int pY = methods.players.getMyPlayer().getLocation().getY();
    final int minX = pX - 52, minY = pY - 52;
    final int maxX = pX + 52, maxY = pY + 52;
    RSGroundItem itm = null;
    for (int x = minX; x <= maxX; x++) {
      for (int y = minY; y <= maxY; y++) {
        final RSGroundItem[] items = getAllAt(x, y);
        for (final RSGroundItem item : items) {
          if (item != null && filter.accept(item) && methods.calc.distanceTo(item.getLocation()) < dist) {
View Full Code Here

Examples of org.rsbot.script.wrappers.RSGroundItem

      return new RSGroundItem[0];
    }

    final Deque<org.rsbot.client.RSItem> itemNL = new Deque<org.rsbot.client.RSItem>(itemNLC.getNodeList());
    for (org.rsbot.client.RSItem item = itemNL.getHead(); item != null; item = itemNL.getNext()) {
      list.add(new RSGroundItem(methods, new RSTile(x, y, methods.game.getPlane()), new RSItem(methods, item)));
    }

    return list.toArray(new RSGroundItem[list.size()]);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.