Class Trade


  • public final class Trade
    extends java.lang.Object
    • Field Detail

      • VALUE_PATTERN

        public static final java.util.regex.Pattern VALUE_PATTERN
    • Method Detail

      • accept

        public static boolean accept()
      • atConfirmationScreen

        public static boolean atConfirmationScreen()
      • atOfferScreen

        public static boolean atOfferScreen()
      • close

        public static boolean close()
      • close

        public static boolean close​(boolean keybind)
      • decline

        public static boolean decline()
      • getCurrentScreen

        public static Trade.Screen getCurrentScreen()
      • getTradersName

        @Nullable
        public static @Nullable java.lang.String getTradersName()
      • getTransferValue

        public static long getTransferValue()
      • hasOtherPlayerAccepted

        public static boolean hasOtherPlayerAccepted()
      • isOpen

        public static boolean isOpen()
      • isWaitingForOtherPlayer

        public static boolean isWaitingForOtherPlayer()
      • offer

        public static boolean offer​(SpriteItem item,
                                    int amount)
      • offer

        public static boolean offer​(java.util.function.Predicate<SpriteItem> filter,
                                    int amount)
      • offer

        public static boolean offer​(java.lang.String name,
                                    int amount)
      • offer

        public static boolean offer​(java.util.regex.Pattern name,
                                    int amount)
      • offer

        public static boolean offer​(int id,
                                    int amount)
      • offerCoinsFromPouch

        @RS3Only
        public static boolean offerCoinsFromPouch​(int amount)
      • offerInventory

        @RS3Only
        public static boolean offerInventory()
      • remove

        public static boolean remove​(SpriteItem item,
                                     int amount)
      • remove

        public static boolean remove​(java.util.function.Predicate<SpriteItem> filter,
                                     int amount)
      • remove

        public static boolean remove​(java.lang.String name,
                                     int amount)
      • remove

        public static boolean remove​(java.util.regex.Pattern name,
                                     int amount)
      • remove

        public static boolean remove​(int id,
                                     int amount)