| Modifier and Type | Field and Description |
|---|---|
private PlayerEntity |
customer |
private MerchantInventory |
merchantInventory |
private MerchantOffers |
offers |
private int |
xp |
| Constructor and Description |
|---|
NPCMerchant(PlayerEntity p_i50184_1_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
func_213705_dZ() |
PlayerEntity |
getCustomer() |
MerchantOffers |
getOffers() |
World |
getWorld() |
int |
getXp() |
SoundEvent |
getYesSound() |
void |
onTrade(MerchantOffer offer) |
void |
setClientSideOffers(MerchantOffers offers) |
void |
setCustomer(PlayerEntity player) |
void |
setXP(int xpIn) |
void |
verifySellingItem(ItemStack stack) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_223340_ej, openMerchantContainerprivate final MerchantInventory merchantInventory
private final PlayerEntity customer
private MerchantOffers offers
private int xp
public NPCMerchant(PlayerEntity p_i50184_1_)
@Nullable public PlayerEntity getCustomer()
getCustomer in interface IMerchantpublic void setCustomer(@Nullable
PlayerEntity player)
setCustomer in interface IMerchantpublic MerchantOffers getOffers()
public void setClientSideOffers(@Nullable
MerchantOffers offers)
setClientSideOffers in interface IMerchantpublic void onTrade(MerchantOffer offer)
public void verifySellingItem(ItemStack stack)
verifySellingItem in interface IMerchantpublic boolean func_213705_dZ()
func_213705_dZ in interface IMerchantpublic SoundEvent getYesSound()
getYesSound in interface IMerchant