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 TypeMethodDescriptionint
boolean
void
notifyTrade
(MerchantOffer pOffer) void
notifyTradeUpdated
(ItemStack pStack) Notifies the merchant of a possible merchant recipe being fulfilled or not.void
overrideOffers
(MerchantOffers pOffers) void
overrideXp
(int pXp) void
setTradingPlayer
(Player pPlayer) 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.world.item.trading.Merchant
canRestock, openTradingScreen
-
Field Details
-
source
-
offers
-
xp
private int xp
-
-
Constructor Details
-
ClientSideMerchant
-
-
Method Details
-
getTradingPlayer
- Specified by:
getTradingPlayer
in interfaceMerchant
-
setTradingPlayer
- Specified by:
setTradingPlayer
in interfaceMerchant
-
getOffers
-
overrideOffers
- Specified by:
overrideOffers
in interfaceMerchant
-
notifyTrade
- Specified by:
notifyTrade
in 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 suggestedItemStack
is not empty.- Specified by:
notifyTradeUpdated
in interfaceMerchant
-
isClientSide
public boolean isClientSide()- Specified by:
isClientSide
in interfaceMerchant
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXp
in interfaceMerchant
-
overrideXp
public void overrideXp(int pXp) - Specified by:
overrideXp
in interfaceMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBar
in interfaceMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSound
in interfaceMerchant
-