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