static class TradeOffers.SellDyedArmorFactory extends Object implements TradeOffers.Factory
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private int |
maxUses |
private int |
price |
private Item |
sell |
Constructor and Description |
---|
SellDyedArmorFactory(Item item,
int price) |
SellDyedArmorFactory(Item item,
int price,
int maxUses,
int experience) |
Modifier and Type | Method and Description |
---|---|
TradeOffer |
create(Entity entity,
Random random)
Creates a trade offer.
|
private static DyeItem |
getDye(Random random) |
private final Item sell
private final int price
private final int maxUses
private final int experience
public SellDyedArmorFactory(Item item, int price)
public SellDyedArmorFactory(Item 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