Package net.openosrs.api.service.shop
Class ShopService
- java.lang.Object
-
- net.openosrs.api.service.shop.ShopService
-
@Singleton public class ShopService extends java.lang.ObjectOpen-shop reads and buy/sell commands.
-
-
Constructor Summary
Constructors Constructor Description ShopService(net.runelite.api.Client client, NpcService npcs, WidgetService widgets, DialogueService dialogue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuy(ShopItem item, int quantity)ShopItemfirst(java.lang.String name)booleanisOpen()voidopen(NpcRef shopkeeper)voidsell(InventoryItem item, int quantity)java.util.List<ShopItem>stock()
-
-
-
Constructor Detail
-
ShopService
@Inject public ShopService(net.runelite.api.Client client, NpcService npcs, WidgetService widgets, DialogueService dialogue)
-
-
Method Detail
-
isOpen
public boolean isOpen()
-
open
public void open(NpcRef shopkeeper)
-
stock
public java.util.List<ShopItem> stock()
-
first
public ShopItem first(java.lang.String name)
-
buy
public void buy(ShopItem item, int quantity)
-
sell
public void sell(InventoryItem item, int quantity)
-
-