Class Trade
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.interfaces.Trade
-
public final class Trade extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trade.Incoming
static class
Trade.Outgoing
static class
Trade.Screen
-
Field Summary
Fields Modifier and Type Field Description static int
CONFIRM_CONTAINER
static int
OFFERS_CONTAINER
static java.util.regex.Pattern
VALUE_PATTERN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
accept()
static boolean
atConfirmationScreen()
static boolean
atOfferScreen()
static boolean
close()
static boolean
close(boolean keybind)
static boolean
decline()
static Trade.Screen
getCurrentScreen()
static @Nullable java.lang.String
getTradersName()
static long
getTransferValue()
static boolean
hasOtherPlayerAccepted()
static boolean
isOpen()
static boolean
isWaitingForOtherPlayer()
static boolean
offer(int id, int amount)
static boolean
offer(SpriteItem item, int amount)
static boolean
offer(java.lang.String name, int amount)
static boolean
offer(java.util.function.Predicate<SpriteItem> filter, int amount)
static boolean
offer(java.util.regex.Pattern name, int amount)
static boolean
offerCoinsFromPouch(int amount)
static boolean
offerInventory()
static boolean
remove(int id, int amount)
static boolean
remove(SpriteItem item, int amount)
static boolean
remove(java.lang.String name, int amount)
static boolean
remove(java.util.function.Predicate<SpriteItem> filter, int amount)
static boolean
remove(java.util.regex.Pattern name, int amount)
-
-
-
Field Detail
-
CONFIRM_CONTAINER
public static final int CONFIRM_CONTAINER
- See Also:
- Constant Field Values
-
OFFERS_CONTAINER
public static final int OFFERS_CONTAINER
- See Also:
- Constant Field Values
-
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)
-
-