MyPlayer

open class MyPlayer

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