Package net.minecraft.world.entity.npc
Class ClientSideMerchant
java.lang.Object
net.minecraft.world.entity.npc.ClientSideMerchant
- All Implemented Interfaces:
Merchant
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidnotifyTrade(MerchantOffer pOffer) voidnotifyTradeUpdated(ItemStack pStack) Notifies the merchant of a possible merchant recipe being fulfilled or not.voidoverrideOffers(MerchantOffers pOffers) voidoverrideXp(int pXp) voidsetTradingPlayer(Player pPlayer) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.trading.Merchant
canRestock, openTradingScreen
-
Field Details
-
source
-
offers
-
xp
private int xp
-
-
Constructor Details
-
ClientSideMerchant
-
-
Method Details
-
getTradingPlayer
- Specified by:
getTradingPlayerin interfaceMerchant
-
setTradingPlayer
- Specified by:
setTradingPlayerin interfaceMerchant
-
getOffers
-
overrideOffers
- Specified by:
overrideOffersin interfaceMerchant
-
notifyTrade
- Specified by:
notifyTradein interfaceMerchant
-
notifyTradeUpdated
Notifies the merchant of a possible merchant recipe being fulfilled or not. Usually, this is just a sound byte being played depending on whether the suggestedItemStackis not empty.- Specified by:
notifyTradeUpdatedin interfaceMerchant
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSidein interfaceMerchant
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXpin interfaceMerchant
-
overrideXp
public void overrideXp(int pXp) - Specified by:
overrideXpin interfaceMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBarin interfaceMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSoundin interfaceMerchant
-