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, validateRawDatagetContentVersion, toContainergetApplicableProperties, getPropertycopyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, require, supports, transform, tryOffer, tryOffer, tryOffer, tryOffer, undocopy, get, getKeys, getOrElse, getOrNull, getValue, getValues, require, supports, supportsgetInventorygetLocation, getWorldOptional<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()