static class TradeOffers.BuyForOneEmeraldFactory extends Object implements TradeOffers.Factory
Modifier and Type | Field and Description |
---|---|
private Item |
buy |
private int |
experience |
private int |
maxUses |
private float |
multiplier |
private int |
price |
Constructor and Description |
---|
BuyForOneEmeraldFactory(ItemConvertible item,
int price,
int maxUses,
int experience) |
Modifier and Type | Method and Description |
---|---|
TradeOffer |
create(Entity entity,
Random random)
Creates a trade offer.
|
private final Item buy
private final int price
private final int maxUses
private final int experience
private final float multiplier
public BuyForOneEmeraldFactory(ItemConvertible item, int price, int maxUses, int experience)
public TradeOffer create(Entity entity, Random random)
create
in interface TradeOffers.Factory
null
if none should be created