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