Gems and runes are pretty good to keep, you can always use a gem bag to extend trips.
For meat and blood pints and all other junk it will be dropped already
Use a filter, filter only the object at that certain position with a specific name for example
RS2Object tree = getObjects().closest(object -> object.getName().equals("Tree") && object.getPosition().equals(new Position(3305, 3000, 0)));