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 intexperienceprivate intmaxUsesprivate intpriceprivate floatpriceMultiplierprivate ItemsecondBuyprivate intsecondCountprivate ItemStacksellprivate intsellCount -
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 TradeOffercreate(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:
createin interfaceTradeOffers.Factory- Returns:
- a new trade offer, or
nullif none should be created
-