Package net.minecraft.village
Class TradeOffers.ProcessItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.ProcessItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.ProcessItemFactory extends Object implements TradeOffers.Factory
- Mappings:
Namespace Name official bhc$g
intermediary net/minecraft/class_3853$class_4164
named net/minecraft/village/TradeOffers$ProcessItemFactory
-
Field Summary
Fields Modifier and Type Field Description private int
experience
private int
maxUses
private float
multiplier
private int
price
private ItemStack
secondBuy
private int
secondCount
private ItemStack
sell
private int
sellCount
-
Constructor Summary
Constructors Constructor Description ProcessItemFactory(ItemConvertible item, int secondCount, int price, Item sellItem, int sellCount, int maxUses, int experience)
ProcessItemFactory(ItemConvertible item, int secondCount, Item sellItem, int sellCount, int maxUses, int experience)
-
Method Summary
Modifier and Type Method Description TradeOffer
create(Entity entity, Random random)
Creates a trade offer.
-
Field Details
-
secondBuy
- Mappings:
Namespace Name Mixin selector official a
Lbhc$g;a:Lbnv;
intermediary field_18563
Lnet/minecraft/class_3853$class_4164;field_18563:Lnet/minecraft/class_1799;
named secondBuy
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;secondBuy:Lnet/minecraft/item/ItemStack;
-
secondCount
private final int secondCount- Mappings:
Namespace Name Mixin selector official b
Lbhc$g;b:I
intermediary field_18564
Lnet/minecraft/class_3853$class_4164;field_18564:I
named secondCount
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;secondCount:I
-
price
private final int price- Mappings:
Namespace Name Mixin selector official c
Lbhc$g;c:I
intermediary field_18565
Lnet/minecraft/class_3853$class_4164;field_18565:I
named price
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;price:I
-
sell
- Mappings:
Namespace Name Mixin selector official d
Lbhc$g;d:Lbnv;
intermediary field_18566
Lnet/minecraft/class_3853$class_4164;field_18566:Lnet/minecraft/class_1799;
named sell
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;sell:Lnet/minecraft/item/ItemStack;
-
sellCount
private final int sellCount- Mappings:
Namespace Name Mixin selector official e
Lbhc$g;e:I
intermediary field_18567
Lnet/minecraft/class_3853$class_4164;field_18567:I
named sellCount
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;sellCount:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official f
Lbhc$g;f:I
intermediary field_18568
Lnet/minecraft/class_3853$class_4164;field_18568:I
named maxUses
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official g
Lbhc$g;g:I
intermediary field_18569
Lnet/minecraft/class_3853$class_4164;field_18569:I
named experience
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;experience:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector official h
Lbhc$g;h:F
intermediary field_18570
Lnet/minecraft/class_3853$class_4164;field_18570:F
named multiplier
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;multiplier:F
-
-
Constructor Details
-
ProcessItemFactory
public ProcessItemFactory(ItemConvertible item, int secondCount, Item sellItem, int sellCount, int maxUses, int experience)- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$g;<init>(Lbtu;ILbnr;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;ILnet/minecraft/class_1792;III)V
named <init>
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;ILnet/minecraft/item/Item;III)V
-
ProcessItemFactory
public ProcessItemFactory(ItemConvertible item, int secondCount, int price, Item sellItem, int sellCount, int maxUses, int experience)- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$g;<init>(Lbtu;IILbnr;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1792;III)V
named <init>
Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/Item;III)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;
-