Package org.rspeer.game.component
Class Trade
- java.lang.Object
-
- org.rspeer.game.component.Trade
-
public class Trade extends Object
Provides operations for the games trading interfaces
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrade.Incomingstatic classTrade.Outgoingstatic classTrade.View
-
Constructor Summary
Constructors Constructor Description Trade()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaccept()static booleandecline()static Trade.ViewgetView()static booleanoffer(Function<ItemQuery,Item> item, int amount)Offers an item with the given amount.static booleanremove(Function<ItemQuery,Item> item, int amount)Removes an item with the given amount.
-
-
-
Method Detail
-
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()
-
-