Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set<Item> items = new HashSet<Item>();
- for (Item i:Inventory.getItems()) {
- items.add(i);
- }
- Item[] itemsArray = items.toArray(new Item[items.size()]);
- for (int i = 0; i < itemsArray.length; i++) {
- Item item = itemsArray[i];
- int count = Inventory.getCount(true, item.getId());
- Gui.InventoryTable.setValueAt(item.getName().substring(12), i, 0);
- Gui.InventoryTable.setValueAt("x" + count, i, 1);
- }
- }
Add Comment
Please, Sign In to add comment