Package net.openosrs.api.service.ge
Class GrandExchangeService
- java.lang.Object
-
- net.openosrs.api.service.ge.GrandExchangeService
-
@Singleton public class GrandExchangeService extends java.lang.ObjectGrand Exchange slot readback and visible offer commands.
-
-
Constructor Summary
Constructors Constructor Description GrandExchangeService(net.runelite.api.Client client, NpcService npcs, WidgetService widgets, DialogueService dialogue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelSelected()voidcollectAll()voidcollectSelected()voidcollectSlot(int zeroBasedSlot)Collects one completed offer when the global collect control is unavailable.voidconfirm()booleanisOpen()GrandExchangeSlotoffer(int slot)java.util.List<GrandExchangeSlot>offers()voidopen(NpcRef clerk)voidopenPriceEntry()Opens the price input; submit the value on a later client tick.voidopenQuantityEntry()Opens the quantity input; submit the value on a later client tick.voidopenSlot(int zeroBasedSlot, boolean buy)voidselectSellItem(InventoryItem item)voidsetPrice(int price)voidsetQuantity(int quantity)voidsubmitPrice(int price)Sends the active price input value.voidsubmitQuantity(int quantity)Sends the active quantity input value.
-
-
-
Constructor Detail
-
GrandExchangeService
@Inject public GrandExchangeService(net.runelite.api.Client client, NpcService npcs, WidgetService widgets, DialogueService dialogue)
-
-
Method Detail
-
isOpen
public boolean isOpen()
-
open
public void open(NpcRef clerk)
-
offers
public java.util.List<GrandExchangeSlot> offers()
-
offer
public GrandExchangeSlot offer(int slot)
-
openSlot
public void openSlot(int zeroBasedSlot, boolean buy)
-
selectSellItem
public void selectSellItem(InventoryItem item)
-
setQuantity
public void setQuantity(int quantity)
-
openPriceEntry
public void openPriceEntry()
Opens the price input; submit the value on a later client tick.
-
submitPrice
public void submitPrice(int price)
Sends the active price input value.
-
openQuantityEntry
public void openQuantityEntry()
Opens the quantity input; submit the value on a later client tick.
-
submitQuantity
public void submitQuantity(int quantity)
Sends the active quantity input value.
-
setPrice
public void setPrice(int price)
-
confirm
public void confirm()
-
collectAll
public void collectAll()
-
collectSlot
public void collectSlot(int zeroBasedSlot)
Collects one completed offer when the global collect control is unavailable.
-
collectSelected
public void collectSelected()
-
cancelSelected
public void cancelSelected()
-
-