Package net.minecraft.village
Class TradeOffers.SellPotionHoldingItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.SellPotionHoldingItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.SellPotionHoldingItemFactory extends Object implements TradeOffers.Factory
-
Field Summary
Fields Modifier and Type Field Description private int
experience
private int
maxUses
private int
price
private float
priceMultiplier
private Item
secondBuy
private int
secondCount
private ItemStack
sell
private int
sellCount
-
Constructor Summary
Constructors Constructor Description SellPotionHoldingItemFactory(Item arrow, int secondCount, Item tippedArrow, int sellCount, int price, int maxUses, int experience)
-
Method Summary
Modifier and Type Method Description TradeOffer
create(Entity entity, Random random)
Creates a trade offer.
-
Field Details
-
sell
-
sellCount
private final int sellCount -
price
private final int price -
maxUses
private final int maxUses -
experience
private final int experience -
secondBuy
-
secondCount
private final int secondCount -
priceMultiplier
private final float priceMultiplier
-
-
Constructor Details
-
SellPotionHoldingItemFactory
-
-
Method Details
-
create
Creates a trade offer.- Specified by:
create
in interfaceTradeOffers.Factory
- Returns:
- a new trade offer, or
null
if none should be created
-