daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set<Item> items = new HashSet<Item>();
  2.         for (Item i:Inventory.getItems()) {
  3.             items.add(i);
  4.         }
  5.         Item[] itemsArray = items.toArray(new Item[items.size()]);
  6.         for (int i = 0; i < itemsArray.length; i++) {
  7.             Item item = itemsArray[i];
  8.             int count = Inventory.getCount(true, item.getId());
  9.             Gui.InventoryTable.setValueAt(item.getName().substring(12), i, 0);
  10.             Gui.InventoryTable.setValueAt("x" + count, i, 1);
  11.         }
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top