Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void mouseClicked(MouseEvent e) {
- Point click = e.getLocation();
- for (Item i : Inventory.getAllItems()) {
- if (i.getComponent().getContentRect().contains(click)) {
- targetItem = i;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement