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, wait
func_223340_ej, openMerchantContainer
private 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 IMerchant
public void setCustomer(@Nullable PlayerEntity player)
setCustomer
in interface IMerchant
public MerchantOffers getOffers()
public void setClientSideOffers(@Nullable MerchantOffers offers)
setClientSideOffers
in interface IMerchant
public void onTrade(MerchantOffer offer)
public void verifySellingItem(ItemStack stack)
verifySellingItem
in interface IMerchant
public boolean func_213705_dZ()
func_213705_dZ
in interface IMerchant
public SoundEvent getYesSound()
getYesSound
in interface IMerchant