Package net.minecraft.world.entity.npc
Class ClientSideMerchant
java.lang.Object
net.minecraft.world.entity.npc.ClientSideMerchant
- All Implemented Interfaces:
Merchant
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
int
void
notifyTrade(MerchantOffer p_35346_)
void
notifyTradeUpdated(ItemStack p_35358_)
void
overrideOffers(MerchantOffers p_35348_)
void
overrideXp(int p_35360_)
void
setTradingPlayer(Player p_35356_)
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
- Specified by:
notifyTradeUpdated
in interfaceMerchant
-
getLevel
-
getVillagerXp
public int getVillagerXp()- Specified by:
getVillagerXp
in interfaceMerchant
-
overrideXp
public void overrideXp(int p_35360_)- Specified by:
overrideXp
in interfaceMerchant
-
showProgressBar
public boolean showProgressBar()- Specified by:
showProgressBar
in interfaceMerchant
-
getNotifyTradeSound
- Specified by:
getNotifyTradeSound
in interfaceMerchant
-