Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static RSItem[] getAll() {
- ArrayList<RSItem> items = new ArrayList<RSItem>();
- RSInterface master = Interfaces.get(467);
- if (master == null)
- return null;
- for (RSInterface comp : master.getChildren()) {
- if (comp == null)
- continue;
- items.add(new RSItem(comp.getComponentIndex(), comp.getComponentItem(),
- comp.getComponentStack(), TYPE.INVENTORY));
- }
- return (RSItem[]) items.stream().filter(s -> s.getID() != 6512).toArray();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement