Class GrandExchange
- java.lang.Object
-
- com.osrsbots.orb.api.interactables.widgets.exchange.GrandExchange
-
public class GrandExchange extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrandExchange.Screen
-
Field Summary
Fields Modifier and Type Field Description static intOPEN_WITH_BOOTH_PREFERENCE
-
Constructor Summary
Constructors Constructor Description GrandExchange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbackToOverview()static booleanbuy(java.lang.String name, int quantity, int price)static booleanbuy(java.lang.String name, int quantity, Exchange.Price price)static booleanbuy(java.lang.String name, int quantity, Exchange.PriceType type)static booleanclose()static booleancollect(Exchange.Slot offer)booleancollectToInventory()static @Nullable RSObjectgetBooth(boolean random)static @Nullable RSNpcgetClerk(boolean random)static @Nullable RSWidgetgetCollectButton()static Exchange.SlotgetFreeSlot(boolean random)static intgetFreeSlots()static java.util.List<RSWidget>getInventoryItems()static GrandExchange.ScreengetScreen()static java.util.List<Exchange.Slot>getSlots()static @Nullable java.lang.StringgetWindowTitle()static booleanhasBought(int itemId)static booleanhasBought(Exchange.Slot offer)static booleanhasCancelledOffer()static booleanhasCompletedOffer()static booleanhasCompletedOffer(int itemId)static booleanhasCompletedOffer(Exchange.Slot offer)static booleanhasSold(int itemId)static booleanhasSold(Exchange.Slot offer)static booleanisOpen()static booleanopen(boolean random)static booleanopenWithBooth(boolean random)static booleanopenWithClerk(boolean random)static booleansell(java.lang.String name, int quantity, int price)static booleansell(java.lang.String name, int quantity, Exchange.Price price)static booleansell(java.lang.String name, int quantity, Exchange.PriceType type)
-
-
-
Method Detail
-
getWindowTitle
@Nullable public static @Nullable java.lang.String getWindowTitle()
-
getScreen
@Nonnull public static GrandExchange.Screen getScreen()
-
isOpen
public static boolean isOpen()
-
close
public static boolean close()
-
open
public static boolean open(boolean random)
-
openWithBooth
public static boolean openWithBooth(boolean random)
-
openWithClerk
public static boolean openWithClerk(boolean random)
-
getBooth
@Nullable public static @Nullable RSObject getBooth(boolean random)
-
getClerk
@Nullable public static @Nullable RSNpc getClerk(boolean random)
-
getCollectButton
@Nullable public static @Nullable RSWidget getCollectButton()
-
collectToInventory
public boolean collectToInventory()
-
hasCancelledOffer
public static boolean hasCancelledOffer()
-
hasCompletedOffer
public static boolean hasCompletedOffer()
-
hasCompletedOffer
public static boolean hasCompletedOffer(int itemId)
-
hasCompletedOffer
public static boolean hasCompletedOffer(@Nonnull Exchange.Slot offer)
-
hasBought
public static boolean hasBought(int itemId)
-
hasBought
public static boolean hasBought(@Nonnull Exchange.Slot offer)
-
hasSold
public static boolean hasSold(int itemId)
-
hasSold
public static boolean hasSold(@Nonnull Exchange.Slot offer)
-
getFreeSlots
public static int getFreeSlots()
-
getFreeSlot
@Nullable public static Exchange.Slot getFreeSlot(boolean random)
-
getSlots
@Nonnull public static java.util.List<Exchange.Slot> getSlots()
-
buy
public static boolean buy(@Nonnull java.lang.String name, int quantity, @Nonnull Exchange.PriceType type)
-
buy
public static boolean buy(@Nonnull java.lang.String name, int quantity, int price)
-
buy
public static boolean buy(@Nonnull java.lang.String name, int quantity, @Nonnull Exchange.Price price)
-
backToOverview
public static boolean backToOverview()
-
collect
public static boolean collect(@Nonnull Exchange.Slot offer)
-
sell
public static boolean sell(@Nonnull java.lang.String name, int quantity, @Nonnull Exchange.PriceType type)
-
sell
public static boolean sell(@Nonnull java.lang.String name, int quantity, int price)
-
sell
public static boolean sell(@Nonnull java.lang.String name, int quantity, @Nonnull Exchange.Price price)
-
getInventoryItems
@Nonnull public static java.util.List<RSWidget> getInventoryItems()
-
-