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