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 offer) voidnotifyTradeUpdated(ItemStack stack) Notifies the merchant of a possible merchant recipe being fulfilled or not.voidoverrideOffers(MerchantOffers offers) voidoverrideXp(int xp) voidsetTradingPlayer(Player player) booleanbooleanstillValid(Player p_383147_) Methods 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
-
stillValid
- Specified by:
stillValidin interfaceMerchant
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXpin interfaceMerchant
-
overrideXp
public void overrideXp(int xp) - Specified by:
overrideXpin interfaceMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBarin interfaceMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSoundin interfaceMerchant
-