public class BasicTrade extends java.lang.Object implements VillagerTrades.ITrade
修飾子とタイプ | フィールドと説明 |
---|---|
protected ItemStack |
forSale |
protected int |
maxTrades |
protected ItemStack |
price |
protected ItemStack |
price2 |
protected float |
priceMult |
protected int |
xp |
コンストラクタと説明 |
---|
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) |
修飾子とタイプ | メソッドと説明 |
---|---|
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
インタフェース内 VillagerTrades.ITrade