Interface Merchant
- All Superinterfaces:
Carrier, DataHolder, DataHolder.Mutable, Locatable, ValueContainer
- All Known Subinterfaces:
Villager, VillagerLike, WanderingTrader
Represents a Merchant which can offer trades to customers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataHolder
DataHolder.Immutable<I>, DataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<Value.Mutable<Player>> customer()default ListValue.Mutable<TradeOffer> Methods inherited from interface DataHolder.Mutable
copyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undoMethods inherited from interface Locatable
blockPosition, location, serverLocation, worldMethods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
tradeOffers
- Returns:
- The trade offers offered by the merchant
-
customer
- Returns:
- Whether this trader is currently trading with a player
-