OtherPlayer

open class OtherPlayer

The other player's trade screen information

Constructors

Link copied to clipboard
constructor()

Functions

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