Samuel91 6 Share 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> Link to comment Share on other sites More sharing options...
Samuel91 6 Author Share Posted November 30, 2019 Never mind I think I figured it out java.util.List<GroundItem> grounditemslist = getGroundItems().all(); Link to comment Share on other sites More sharing options...
Defiled 415 Share Posted November 30, 2019 Create a global variable: List<GroundItem> groundItems; Assign a value to variable in your method: groundItems = getGroundItems().all(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now