public interface Merchant extends DataHolder, Carrier
Modifier and Type | Method and Description |
---|---|
Optional<Human> |
getCustomer()
Gets the currently trading customer with this merchant.
|
default TradeOfferData |
getTradeOfferData()
|
void |
setCustomer(Human human)
Sets the currently trading customer with this merchant.
|
setRawData, validateRawData
toContainer
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, supports, transform, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, supports, supports
getInventory
Optional<Human> getCustomer()
void setCustomer(@Nullable Human human)
If the human entity is available, a new trading window may open with this merchant.
human
- The human to trade withdefault TradeOfferData getTradeOfferData()