Package net.minecraft.entity.merchant
Interface IMerchant
-
- All Known Implementing Classes:
AbstractVillagerEntity
,NPCMerchant
,VillagerEntity
,WanderingTraderEntity
public interface IMerchant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canRestock()
World
getLevel()
SoundEvent
getNotifyTradeSound()
MerchantOffers
getOffers()
PlayerEntity
getTradingPlayer()
int
getVillagerXp()
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
showProgressBar()
-
-
-
Method Detail
-
setTradingPlayer
void setTradingPlayer(@Nullable PlayerEntity p_70932_1_)
-
getTradingPlayer
@Nullable PlayerEntity getTradingPlayer()
-
getOffers
MerchantOffers getOffers()
-
overrideOffers
void overrideOffers(@Nullable MerchantOffers p_213703_1_)
-
notifyTrade
void notifyTrade(MerchantOffer p_213704_1_)
-
notifyTradeUpdated
void notifyTradeUpdated(ItemStack p_110297_1_)
-
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_)
-
-