public interface Merchant
Modifier and Type | Method and Description |
---|---|
default boolean |
canRefreshTrades() |
PlayerEntity |
getCurrentCustomer() |
int |
getExperience() |
World |
getMerchantWorld() |
TradeOfferList |
getOffers() |
SoundEvent |
getYesSound() |
boolean |
isLeveledMerchant() |
void |
onSellingItem(ItemStack stack) |
default void |
sendOffers(PlayerEntity playerEntity,
Text text,
int int2) |
void |
setCurrentCustomer(PlayerEntity customer) |
void |
setExperienceFromServer(int experience) |
void |
setOffersFromServer(TradeOfferList offers) |
void |
trade(TradeOffer offer) |
void setCurrentCustomer(@Nullable PlayerEntity customer)
@Nullable PlayerEntity getCurrentCustomer()
TradeOfferList getOffers()
@Environment(value=CLIENT) void setOffersFromServer(@Nullable TradeOfferList offers)
void trade(TradeOffer offer)
void onSellingItem(ItemStack stack)
World getMerchantWorld()
int getExperience()
void setExperienceFromServer(int experience)
boolean isLeveledMerchant()
SoundEvent getYesSound()
default boolean canRefreshTrades()
default void sendOffers(PlayerEntity playerEntity, Text text, int int2)