public class BasicTrade extends java.lang.Object implements VillagerTrades.ITrade
Modifier and Type | Field and Description |
---|---|
protected ItemStack |
forSale |
protected int |
maxTrades |
protected ItemStack |
price |
protected ItemStack |
price2 |
protected float |
priceMult |
protected int |
xp |
Constructor and Description |
---|
BasicTrade(int emeralds,
ItemStack forSale,
int maxTrades,
int xp) |
BasicTrade(int emeralds,
ItemStack forSale,
int maxTrades,
int xp,
float mult) |
BasicTrade(ItemStack price,
ItemStack forSale,
int maxTrades,
int xp,
float priceMult) |
BasicTrade(ItemStack price,
ItemStack price2,
ItemStack forSale,
int maxTrades,
int xp,
float priceMult) |
Modifier and Type | Method and Description |
---|---|
MerchantOffer |
getOffer(Entity merchant,
java.util.Random rand) |
protected final ItemStack price
protected final ItemStack price2
protected final ItemStack forSale
protected final int maxTrades
protected final int xp
protected final float priceMult
public BasicTrade(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult)
public BasicTrade(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult)
public BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult)
public BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp)
@Nullable public MerchantOffer getOffer(Entity merchant, java.util.Random rand)
getOffer
in interface VillagerTrades.ITrade