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 org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional
<Value.Mutable<Player>> customer()
default ListValue.Mutable
<TradeOffer> Methods inherited from interface org.spongepowered.api.data.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, undo
Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
-
Method Details
-
tradeOffers
- Returns:
- The trade offers offered by the merchant
-
customer
- Returns:
- Whether this trader is currently trading with a player
-