Class Trade

java.lang.Object
org.highlife.api.methods.trade.Trade

public class Trade extends Object
  • Constructor Details

    • Trade

      public Trade()
  • Method Details

    • getItems

      public static Item[] getItems(boolean mine)
    • getMyItems

      public static Item[] getMyItems()
    • getTheirItems

      public static Item[] getTheirItems()
    • isOpen

      public static boolean isOpen()
    • isOpen

      public static boolean isOpen(int tradeScreen)
    • getFirstTitle

      public static String getFirstTitle()
    • getTradingWith

      public static String getTradingWith()
    • canAccept

      public static boolean canAccept()
    • acceptTrade

      public static boolean acceptTrade()
    • acceptTrade

      public static boolean acceptTrade(int tradeScreen)
    • hasAcceptedTrade

      public static boolean hasAcceptedTrade(TradeUser tradeUser)
    • 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

      public static boolean verifyTrade(boolean myScreen, Item[] expected)
    • contains

      public static boolean contains(boolean myScreen, int amount, String itemName)
    • contains

      public static boolean contains(boolean myScreen, String... itemNames)
    • 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

      public static Item getItem(boolean myScreen, String itemName)
    • getItem

      public static Item getItem(boolean myScreen, int itemId)
    • tradeWithPlayer

      public static boolean tradeWithPlayer(String playerName)
    • tradeWithPlayer

      public static boolean tradeWithPlayer(Player player)
    • addItem

      public static boolean addItem(String itemName, int amount)
    • addItem

      public static boolean addItem(int itemId, int amount)
    • addItem

      public static boolean addItem(Item i, int amount)
    • removeItem

      public static boolean removeItem(String itemName, int amount)
    • removeItem

      public static boolean removeItem(int itemId, int amount)
    • slotBounds

      public static Rectangle slotBounds(int slot)
    • removeItem

      public static boolean removeItem(Item i, int amount)