Interface Merchant
- All Known Implementing Classes:
AbstractVillager, ClientSideMerchant, Villager, WanderingTrader
public interface Merchant
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean@Nullable PlayerintbooleanvoidnotifyTrade(MerchantOffer offer) voidnotifyTradeUpdated(ItemStack itemStack) Notifies the merchant of a possible merchant recipe being fulfilled or not.default voidopenTradingScreen(Player player, Component title, int level) voidoverrideOffers(MerchantOffers offers) voidoverrideXp(int xp) voidsetTradingPlayer(@Nullable Player player) booleanbooleanstillValid(Player player)
-
Method Details
-
setTradingPlayer
-
getTradingPlayer
@Nullable Player getTradingPlayer() -
getOffers
MerchantOffers getOffers() -
overrideOffers
-
notifyTrade
-
notifyTradeUpdated
-
getVillagerXp
int getVillagerXp() -
overrideXp
void overrideXp(int xp) -
showProgressBar
boolean showProgressBar() -
getNotifyTradeSound
SoundEvent getNotifyTradeSound() -
canRestock
default boolean canRestock() -
openTradingScreen
-
isClientSide
boolean isClientSide() -
stillValid
-