Skip to content

Commit

Permalink
runelite-api: make InventoryItemQuery take in InventoryID
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderhenne committed Mar 26, 2018
1 parent 0ee94aa commit cce1c4f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@
*/
package net.runelite.api.queries;

import lombok.RequiredArgsConstructor;
import net.runelite.api.Client;
import net.runelite.api.InventoryID;
import net.runelite.api.Item;
import net.runelite.api.ItemContainer;
import net.runelite.api.Query;

@RequiredArgsConstructor
public class InventoryItemQuery extends Query<Item, InventoryItemQuery>
{
private final InventoryID inventory;

@Override
public Item[] result(Client client)
{
ItemContainer container = client.getItemContainer(InventoryID.INVENTORY);
ItemContainer container = client.getItemContainer(inventory);
if (container == null)
{
return null;
Expand Down

0 comments on commit cce1c4f

Please sign in to comment.