Package net.minecraft.world.item.trading
Interface Merchant
- All Known Implementing Classes:
AbstractVillager
,ClientSideMerchant
,Villager
,WanderingTrader
public interface Merchant
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
int
boolean
void
notifyTrade
(MerchantOffer p_45305_) void
notifyTradeUpdated
(ItemStack p_45308_) default void
openTradingScreen
(Player p_45302_, Component p_45303_, int p_45304_) void
overrideOffers
(MerchantOffers p_45306_) void
overrideXp
(int p_45309_) void
setTradingPlayer
(Player p_45307_) boolean
-
Method Details
-
setTradingPlayer
-
getTradingPlayer
-
getOffers
MerchantOffers getOffers() -
overrideOffers
-
notifyTrade
-
notifyTradeUpdated
-
getVillagerXp
int getVillagerXp() -
overrideXp
void overrideXp(int p_45309_) -
showProgressBar
boolean showProgressBar() -
getNotifyTradeSound
SoundEvent getNotifyTradeSound() -
canRestock
default boolean canRestock() -
openTradingScreen
-
isClientSide
boolean isClientSide()
-