Package net.minecraft.entity
Class NPCMerchant
java.lang.Object
net.minecraft.entity.NPCMerchant
- All Implemented Interfaces:
IMerchant
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MerchantInventory
private MerchantOffers
private final PlayerEntity
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
int
void
notifyTrade
(MerchantOffer p_213704_1_) void
notifyTradeUpdated
(ItemStack p_110297_1_) void
overrideOffers
(MerchantOffers p_213703_1_) void
overrideXp
(int p_213702_1_) void
setTradingPlayer
(PlayerEntity p_70932_1_) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getTradingPlayer
in interfaceIMerchant
-
setTradingPlayer
- Specified by:
setTradingPlayer
in interfaceIMerchant
-
getOffers
-
overrideOffers
- Specified by:
overrideOffers
in interfaceIMerchant
-
notifyTrade
- Specified by:
notifyTrade
in interfaceIMerchant
-
notifyTradeUpdated
- Specified by:
notifyTradeUpdated
in interfaceIMerchant
-
getLevel
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXp
in interfaceIMerchant
-
overrideXp
public void overrideXp(int p_213702_1_) - Specified by:
overrideXp
in interfaceIMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBar
in interfaceIMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSound
in interfaceIMerchant
-