Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.   public static RSItem[] getAll() {
  2.     ArrayList<RSItem> items = new ArrayList<RSItem>();
  3.     RSInterface master = Interfaces.get(467);
  4.     if (master == null)
  5.       return null;
  6.  
  7.     for (RSInterface comp : master.getChildren()) {
  8.  
  9.       if (comp == null)
  10.         continue;
  11.  
  12.       items.add(new RSItem(comp.getComponentIndex(), comp.getComponentItem(),
  13.           comp.getComponentStack(), TYPE.INVENTORY));
  14.     }
  15.  
  16.     return (RSItem[]) items.stream().filter(s -> s.getID() != 6512).toArray();
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement