public interface Merchant extends DataHolder, Carrier
Modifier and Type | Method and Description |
---|---|
Optional<Human> |
getCustomer()
Gets the currently trading customer with this merchant.
|
TradeOfferData |
getTradeOfferData()
|
void |
setCustomer(Human human)
Sets the currently trading customer with this merchant.
|
getProperties, getProperty, setRawData, validateRawData
toContainer
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 withTradeOfferData getTradeOfferData()