Package net.minecraft.village
Class TradeOffers.ProcessItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.ProcessItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
- Mappings:
Namespace Name official bju$g
intermediary net/minecraft/class_3853$class_4164
named net/minecraft/village/TradeOffers$ProcessItemFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProcessItemFactory(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 TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
secondBuy
- Mappings:
Namespace Name Mixin selector official a
Lbju$g;a:Lbqp;
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
Lbju$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
Lbju$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
Lbju$g;d:Lbqp;
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
Lbju$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
Lbju$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
Lbju$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
Lbju$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>
Lbju$g;<init>(Lbwo;ILbql;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>
Lbju$g;<init>(Lbwo;IILbql;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
Lbju$f;a(Latf;Ljava/util/Random;)Lbvm;
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;
-