Package net.minecraft.entity.merchant
Interface IMerchant
- All Known Implementing Classes:
AbstractVillagerEntity
,NPCMerchant
,VillagerEntity
,WanderingTraderEntity
public interface IMerchant
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
getLevel()
int
void
notifyTrade
(MerchantOffer p_213704_1_) void
notifyTradeUpdated
(ItemStack p_110297_1_) default void
openTradingScreen
(PlayerEntity p_213707_1_, ITextComponent p_213707_2_, int p_213707_3_) void
overrideOffers
(MerchantOffers p_213703_1_) void
overrideXp
(int p_213702_1_) void
setTradingPlayer
(PlayerEntity p_70932_1_) boolean
-
Method Details
-
setTradingPlayer
-
getTradingPlayer
-
getOffers
MerchantOffers getOffers() -
overrideOffers
-
notifyTrade
-
notifyTradeUpdated
-
getLevel
World getLevel() -
getVillagerXp
int getVillagerXp() -
overrideXp
void overrideXp(int p_213702_1_) -
showProgressBar
boolean showProgressBar() -
getNotifyTradeSound
SoundEvent getNotifyTradeSound() -
canRestock
default boolean canRestock() -
openTradingScreen
default void openTradingScreen(PlayerEntity p_213707_1_, ITextComponent p_213707_2_, int p_213707_3_)
-