OtherPlayer

public class OtherPlayer

The other player's trade screen information

Functions

contains
Link copied to clipboard
static boolean contains(Array<int> id)
Checks if any of the other player's offered items exists with any of the specified ids param id the item ids
static boolean contains(Array<String> name)
Checks if any of the other player's offered items exists with any of the specified names param name the item names
static boolean contains(Predicate<Item> filter)
Checks if any of the other player's offered items exists matching the specified filter param filter the item filter
getCount
Link copied to clipboard
static int getCount(Array<int> id)
Sums the item stacks of the other player's offered items with the specified item ids
static int getCount(Array<String> name)
Sums the item stacks of the other player's offered items with the specified item names
static int getCount(Predicate<Item> filter)
Sums the item stacks of the other player's offered items matching the specified filter
getName
Link copied to clipboard
static Optional<StringgetName()
Gets the name of the other player.
getOffers
Link copied to clipboard
static List<ItemgetOffers()
Gets the offered items by the other player.
hasAccepted
Link copied to clipboard
static boolean hasAccepted()
Determines if the other player has accepted the offer.