Class Trade


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

      • Trade

        public Trade()
    • Method Detail

      • 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()