Package org.highlife.api.methods.trade
Class Trade
java.lang.Object
org.highlife.api.methods.trade.Trade
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanacceptTrade(int tradeScreen) static booleanaddItem(int itemId, int amount) static booleanstatic booleanstatic booleanstatic booleanclose()static booleanclose(int tradeScreen) static booleancontains(boolean myScreen, int... itemIds) static booleancontains(boolean myScreen, int amount, int itemId) static booleanstatic booleanstatic booleanstatic booleandeclineTrade(int tradeScreen) static Stringstatic ItemgetItem(boolean myScreen, int itemId) static Itemstatic Item[]getItems(boolean mine) static Item[]static Item[]static Stringstatic intgetValue(boolean myOffer) static booleanhasAcceptedTrade(TradeUser tradeUser) static booleanisOpen()static booleanisOpen(int tradeScreen) static booleanremoveItem(int itemId, int amount) static booleanremoveItem(String itemName, int amount) static booleanremoveItem(Item i, int amount) static RectangleslotBounds(int slot) static booleantradeWithPlayer(String playerName) static booleantradeWithPlayer(Player player) static booleanverifyTrade(boolean myScreen, Item[] expected)
-
Constructor Details
-
Trade
public Trade()
-
-
Method Details
-
getItems
-
getMyItems
-
getTheirItems
-
isOpen
public static boolean isOpen() -
isOpen
public static boolean isOpen(int tradeScreen) -
getFirstTitle
-
getTradingWith
-
canAccept
public static boolean canAccept() -
acceptTrade
public static boolean acceptTrade() -
acceptTrade
public static boolean acceptTrade(int tradeScreen) -
hasAcceptedTrade
-
declineTrade
public static boolean declineTrade() -
declineTrade
public static boolean declineTrade(int tradeScreen) -
close
public static boolean close() -
close
public static boolean close(int tradeScreen) -
verifyTrade
-
contains
-
contains
-
contains
public static boolean contains(boolean myScreen, int amount, int itemId) -
contains
public static boolean contains(boolean myScreen, int... itemIds) -
getValue
public static int getValue(boolean myOffer) -
getItem
-
getItem
-
tradeWithPlayer
-
tradeWithPlayer
-
addItem
-
addItem
public static boolean addItem(int itemId, int amount) -
addItem
-
removeItem
-
removeItem
public static boolean removeItem(int itemId, int amount) -
slotBounds
-
removeItem
-