MyPlayer

public class MyPlayer

My player's trade screen information

Functions

contains
Link copied to clipboard
static boolean contains(Array<int> id)
Checks if any of my offered trade items exists with any of the specified ids param id the item ids
static boolean contains(Array<String> name)
Checks if any of my offered trade items exists with any of the specified names param name the item names
static boolean contains(Predicate<Item> filter)
Checks if any of my offered trade 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 all my offered trade items with the specified item ids
static int getCount(Array<String> name)
Sums the item stacks of my offered trade items with the specified item names
static int getCount(Predicate<Item> filter)
Sums the item stacks of my offered trade items matching the specified filter
getOffers
Link copied to clipboard
static List<ItemgetOffers()
Gets the offered items by the player character.
hasAccepted
Link copied to clipboard
static boolean hasAccepted()
Determines if the player character has accepted the offer.