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
- Mappings:
Namespace Name official bhc$j
intermediary net/minecraft/class_3853$class_4167
named net/minecraft/village/TradeOffers$SellPotionHoldingItemFactory
-
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
- Mappings:
Namespace Name Mixin selector official a
Lbhc$j;a:Lbnv;
intermediary field_18581
Lnet/minecraft/class_3853$class_4167;field_18581:Lnet/minecraft/class_1799;
named sell
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;sell:Lnet/minecraft/item/ItemStack;
-
sellCount
private final int sellCount- Mappings:
Namespace Name Mixin selector official b
Lbhc$j;b:I
intermediary field_18582
Lnet/minecraft/class_3853$class_4167;field_18582:I
named sellCount
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;sellCount:I
-
price
private final int price- Mappings:
Namespace Name Mixin selector official c
Lbhc$j;c:I
intermediary field_18583
Lnet/minecraft/class_3853$class_4167;field_18583:I
named price
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;price:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official d
Lbhc$j;d:I
intermediary field_18584
Lnet/minecraft/class_3853$class_4167;field_18584:I
named maxUses
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official e
Lbhc$j;e:I
intermediary field_18585
Lnet/minecraft/class_3853$class_4167;field_18585:I
named experience
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;experience:I
-
secondBuy
- Mappings:
Namespace Name Mixin selector official f
Lbhc$j;f:Lbnr;
intermediary field_18586
Lnet/minecraft/class_3853$class_4167;field_18586:Lnet/minecraft/class_1792;
named secondBuy
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;secondBuy:Lnet/minecraft/item/Item;
-
secondCount
private final int secondCount- Mappings:
Namespace Name Mixin selector official g
Lbhc$j;g:I
intermediary field_18587
Lnet/minecraft/class_3853$class_4167;field_18587:I
named secondCount
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;secondCount:I
-
priceMultiplier
private final float priceMultiplier- Mappings:
Namespace Name Mixin selector official h
Lbhc$j;h:F
intermediary field_18588
Lnet/minecraft/class_3853$class_4167;field_18588:F
named priceMultiplier
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;priceMultiplier:F
-
-
Constructor Details
-
SellPotionHoldingItemFactory
public SellPotionHoldingItemFactory(Item arrow, int secondCount, Item tippedArrow, int sellCount, int price, int maxUses, int experience)- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$j;<init>(Lbnr;ILbnr;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4167;<init>(Lnet/minecraft/class_1792;ILnet/minecraft/class_1792;IIII)V
named <init>
Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;<init>(Lnet/minecraft/item/Item;ILnet/minecraft/item/Item;IIII)V
-
-
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 - Mappings:
Namespace Name Mixin selector official a
Lbhc$f;a(Laqv;Ljava/util/Random;)Lbss;
intermediary method_7246
Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Ljava/util/Random;)Lnet/minecraft/class_1914;
named create
Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Ljava/util/Random;)Lnet/minecraft/village/TradeOffer;
-