static class TradeOffers.SellPotionHoldingItemFactory extends Object implements TradeOffers.Factory
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private int |
maxUses |
private int |
price |
private float |
priceMultiplier |
private Item |
secondBuy |
private int |
secondCount |
private ItemStack |
sell |
private int |
sellCount |
Constructor and Description |
---|
SellPotionHoldingItemFactory(Item arrow,
int secondCount,
Item tippedArrow,
int sellCount,
int price,
int maxUses,
int experience) |
Modifier and Type | Method and Description |
---|---|
TradeOffer |
create(Entity entity,
Random random)
Creates a trade offer.
|
private final ItemStack sell
private final int sellCount
private final int price
private final int maxUses
private final int experience
private final Item secondBuy
private final int secondCount
private final float priceMultiplier
public TradeOffer create(Entity entity, Random random)
create
in interface TradeOffers.Factory
null
if none should be created