Package net.minecraft.entity
Class NPCMerchant
java.lang.Object
net.minecraft.entity.NPCMerchant
- All Implemented Interfaces:
IMerchant
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MerchantInventoryprivate MerchantOffersprivate final PlayerEntityprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()intvoidnotifyTrade(MerchantOffer p_213704_1_) voidnotifyTradeUpdated(ItemStack p_110297_1_) voidoverrideOffers(MerchantOffers p_213703_1_) voidoverrideXp(int p_213702_1_) voidsetTradingPlayer(PlayerEntity p_70932_1_) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.entity.merchant.IMerchant
canRestock, openTradingScreen
-
Field Details
-
container
-
source
-
offers
-
xp
private int xp
-
-
Constructor Details
-
NPCMerchant
-
-
Method Details
-
getTradingPlayer
- Specified by:
getTradingPlayerin interfaceIMerchant
-
setTradingPlayer
- Specified by:
setTradingPlayerin interfaceIMerchant
-
getOffers
-
overrideOffers
- Specified by:
overrideOffersin interfaceIMerchant
-
notifyTrade
- Specified by:
notifyTradein interfaceIMerchant
-
notifyTradeUpdated
- Specified by:
notifyTradeUpdatedin interfaceIMerchant
-
getLevel
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXpin interfaceIMerchant
-
overrideXp
public void overrideXp(int p_213702_1_) - Specified by:
overrideXpin interfaceIMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBarin interfaceIMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSoundin interfaceIMerchant
-