Interface ITradeAPI


  • public interface ITradeAPI
    • Method Detail

      • isTrading

        boolean isTrading()
      • isFirstInterfaceOpen

        boolean isFirstInterfaceOpen()
      • isSecondInterfaceOpen

        boolean isSecondInterfaceOpen()
      • acceptTrade

        boolean acceptTrade()
      • declineTrade

        boolean declineTrade()
      • getOtherPlayer

        java.lang.String getOtherPlayer()
      • didOtherPlayerAccept

        boolean didOtherPlayerAccept()
      • getOurItems

        java.util.List<ItemWidget> getOurItems()
      • getTheirItems

        java.util.List<ItemWidget> getTheirItems()
      • getOurItems

        java.util.List<ItemWidget> getOurItems​(java.util.function.Predicate<Item> filter)
      • getTheirItems

        java.util.List<ItemWidget> getTheirItems​(java.util.function.Predicate<Item> filter)
      • getOurItemWidget

        ItemWidget getOurItemWidget​(int index)
      • getTheirItemWidget

        ItemWidget getTheirItemWidget​(int index)
      • getItem

        ItemWidget getItem​(java.lang.String... names)
      • getItem

        ItemWidget getItem​(java.util.function.Predicate<Item> filter)
      • getOurItemCount

        int getOurItemCount()
      • getOurItemCount

        int getOurItemCount​(int... ids)
      • getOurItemCount

        int getOurItemCount​(java.lang.String... names)
      • getOurItemCount

        int getOurItemCount​(java.util.function.Predicate<Item> filter)
      • getTheirItemCount

        int getTheirItemCount()
      • getTheirItemCount

        int getTheirItemCount​(int... ids)
      • getTheirItemCount

        int getTheirItemCount​(java.lang.String... names)
      • getTheirItemCount

        int getTheirItemCount​(java.util.function.Predicate<Item> filter)
      • ourOfferContains

        boolean ourOfferContains​(int... ids)
      • ourOfferContains

        boolean ourOfferContains​(java.lang.String... names)
      • ourOfferContains

        boolean ourOfferContains​(java.util.function.Predicate<Item> filter)
      • theirOfferContains

        boolean theirOfferContains​(int... ids)
      • theirOfferContains

        boolean theirOfferContains​(java.lang.String... names)
      • theirOfferContains

        boolean theirOfferContains​(java.util.function.Predicate<Item> filter)
      • ourOfferContainsAll

        boolean ourOfferContainsAll​(int... ids)
      • ourOfferContainsAll

        boolean ourOfferContainsAll​(java.lang.String... names)
      • theirOfferContainsAll

        boolean theirOfferContainsAll​(int... ids)
      • theirOfferContainsAll

        boolean theirOfferContainsAll​(java.lang.String... names)
      • offer

        boolean offer​(int count,
                      int... ids)
      • offer

        boolean offer​(int count,
                      java.lang.String... names)
      • offer

        boolean offer​(int count,
                      java.util.function.Predicate<Item> filter)
      • offerAll

        boolean offerAll​(int... ids)
      • offerAll

        boolean offerAll​(java.lang.String... names)
      • offerAll

        boolean offerAll​(java.util.function.Predicate<Item> filter)
      • remove

        boolean remove​(int count,
                       int... ids)
      • remove

        boolean remove​(int count,
                       java.lang.String... names)
      • remove

        boolean remove​(int count,
                       java.util.function.Predicate<Item> filter)
      • removeAll

        boolean removeAll​(int... ids)
      • removeAll

        boolean removeAll​(java.lang.String... names)
      • removeAll

        boolean removeAll​(java.util.function.Predicate<Item> filter)