Skip to content

Commit 85adb75

Browse files
committed
Add getItems() to ItemBag
1 parent 0763543 commit 85adb75

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/pokegoapi/api/inventory/ItemBag.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.pokegoapi.exceptions.RemoteServerException;
3030
import com.pokegoapi.main.ServerRequest;
3131

32+
import java.util.Collection;
3233
import java.util.HashMap;
3334

3435
/**
@@ -102,4 +103,9 @@ public Item getItem(ItemId type) {
102103

103104
return items.get(type);
104105
}
106+
107+
108+
public Collection<Item> getItems() {
109+
return items.values();
110+
}
105111
}

0 commit comments

Comments
 (0)