Advertisement
Guest User

Untitled

a guest
Jan 4th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1.         for (int i = 0; i < stacks.size(); i++) {
  2.             int width = i % DASH_W;
  3.             int height = i / DASH_W;
  4.             if (arrangedIcons.length >= height)
  5.                 arrangedIcons = ObjectArrays.concat(arrangedIcons, new ItemIcon[DASH_W]);
  6.             ItemIcon[] current = arrangedIcons[height];
  7.             current[width] = new ItemIcon(stacks.get(i));
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement