Samuel91 6 Posted November 30, 2019 Im trying to store the output of getGroundItems().all() and then iterate through it item by item but I'm not sure how to do it. I tried this: List boneslist = getGroundItems().all(); but the error I got was Required: java.awt.List Found: java.util.List <org.dreambot.api.wrappers.items.GroundItem>
Samuel91 6 Author Posted November 30, 2019 Never mind I think I figured it out java.util.List<GroundItem> grounditemslist = getGroundItems().all();
Defiled 424 Posted November 30, 2019 Create a global variable: List<GroundItem> groundItems; Assign a value to variable in your method: groundItems = getGroundItems().all();
Recommended Posts
Archived
This topic is now archived and is closed to further replies.