static class TradeOffers.SellMapFactory extends Object implements TradeOffers.Factory
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private MapIcon.Type |
iconType |
private int |
maxUses |
private int |
price |
private StructureFeature<?> |
structure |
Constructor and Description |
---|
SellMapFactory(int price,
StructureFeature<?> feature,
MapIcon.Type iconType,
int maxUses,
int experience) |
Modifier and Type | Method and Description |
---|---|
TradeOffer |
create(Entity entity,
Random random)
Creates a trade offer.
|
private final int price
private final StructureFeature<?> structure
private final MapIcon.Type iconType
private final int maxUses
private final int experience
public SellMapFactory(int price, StructureFeature<?> feature, MapIcon.Type iconType, int maxUses, int experience)
@Nullable public TradeOffer create(Entity entity, Random random)
create
in interface TradeOffers.Factory
null
if none should be created