static class TradeOffers.SellItemFactory extends Object implements TradeOffers.Factory
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int |
experience |
private int |
maxUses |
private float |
multiplier |
private int |
price |
private ItemStack |
sell |
Constructor and Description |
---|
SellItemFactory(Block block,
int price,
int count,
int maxUses,
int experience) |
SellItemFactory(Item item,
int price,
int count,
int experience) |
SellItemFactory(Item item,
int price,
int count,
int maxUses,
int experience) |
SellItemFactory(ItemStack stack,
int price,
int count,
int maxUses,
int experience) |
SellItemFactory(ItemStack stack,
int price,
int count,
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 sell
private final int price
private final int count
private final int maxUses
private final int experience
private final float multiplier
public SellItemFactory(Block block, int price, int count, int maxUses, int experience)
public SellItemFactory(Item item, int price, int count, int experience)
public SellItemFactory(Item item, int price, int count, int maxUses, int experience)
public SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience)
public SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier)
public TradeOffer create(Entity entity, Random random)
create
in interface TradeOffers.Factory
null
if none should be created