Class Trade

java.lang.Object
org.rspeer.game.component.Trade

public class Trade extends Object
Provides operations for the games trading interfaces
  • Constructor Details

    • Trade

      public Trade()
  • Method Details

    • getView

      public static Trade.View getView()
    • offer

      public static boolean offer(Function<ItemQuery, Item> item, int amount)
      Offers an item with the given amount. If the quantity is >= the item quantity, the All option will be used
    • remove

      public static boolean remove(Function<ItemQuery, Item> item, int amount)
      Removes an item with the given amount. If the quantity is >= the item quantity, the All option will be used
    • accept

      public static boolean accept()
    • decline

      public static boolean decline()