Package net.minecraft.village
Class TradeOffers.BuyItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.BuyItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
TradeOffers
- Mappings:
Namespace Name official cbl$b
intermediary net/minecraft/class_3853$class_4161
named net/minecraft/village/TradeOffers$BuyItemFactory
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final float
private final int
private final ItemStack
-
Constructor Summary
ConstructorDescriptionBuyItemFactory
(ItemConvertible item, int count, int maxUses, int experience) BuyItemFactory
(ItemConvertible item, int count, int maxUses, int experience, int price) BuyItemFactory
(ItemStack stack, int maxUses, int experience, int price) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
stack
- Mappings:
Namespace Name Mixin selector official a
Lcbl$b;a:Lcjf;
intermediary field_45130
Lnet/minecraft/class_3853$class_4161;field_45130:Lnet/minecraft/class_1799;
named stack
Lnet/minecraft/village/TradeOffers$BuyItemFactory;stack:Lnet/minecraft/item/ItemStack;
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official b
Lcbl$b;b:I
intermediary field_18550
Lnet/minecraft/class_3853$class_4161;field_18550:I
named maxUses
Lnet/minecraft/village/TradeOffers$BuyItemFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official c
Lcbl$b;c:I
intermediary field_18551
Lnet/minecraft/class_3853$class_4161;field_18551:I
named experience
Lnet/minecraft/village/TradeOffers$BuyItemFactory;experience:I
-
price
private final int price- Mappings:
Namespace Name Mixin selector official d
Lcbl$b;d:I
intermediary field_18549
Lnet/minecraft/class_3853$class_4161;field_18549:I
named price
Lnet/minecraft/village/TradeOffers$BuyItemFactory;price:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector official e
Lcbl$b;e:F
intermediary field_18552
Lnet/minecraft/class_3853$class_4161;field_18552:F
named multiplier
Lnet/minecraft/village/TradeOffers$BuyItemFactory;multiplier:F
-
-
Constructor Details
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lcbl$b;<init>(Lcpu;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;III)V
named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;III)V
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lcbl$b;<init>(Lcpu;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;IIII)V
named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IIII)V
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lcbl$b;<init>(Lcjf;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1799;III)V
named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemStack;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
Lcbl$g;a(Lbiq;Lasc;)Lcot;
intermediary method_7246
Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
named create
Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;
-