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