bionic 0 Posted January 28, 2019 Having some trouble looking through the API for the correct way to do this. Right now im using: getInventory().get("xxx").useOn(yyy); But the xxx in my inventory contains a noted version and un-noted versions. How do I make sure it only selects the un-noted version. Right now it will select the first "xxx" in my inventory so if I have noted "xxx" in my first slot it will select that, if I have un-noted "xxx" in my first slot it will select that. I would like it so it doesnt matter what slot its in.
Pseudo 179 Posted January 28, 2019 Iirc the Item class has a method for checking if an item is in fact, noted.
bionic 0 Author Posted January 29, 2019 JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted.
Nuclear Nezz 2107 Posted January 29, 2019 59 minutes ago, bionic said: JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted. Or you can use a filter and check for noted.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.