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 named net/minecraft/village/TradeOffers$BuyItemFactory
intermediary net/minecraft/class_3853$class_4161
official cpm$b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final float
private final int
private final TradedItem
-
Constructor Summary
ConstructorDescriptionBuyItemFactory
(ItemConvertible item, int count, int maxUses, int experience) BuyItemFactory
(ItemConvertible item, int count, int maxUses, int experience, int price) BuyItemFactory
(TradedItem stack, int maxUses, int experience, int price) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
stack
- Mappings:
Namespace Name Mixin selector named stack
Lnet/minecraft/village/TradeOffers$BuyItemFactory;stack:Lnet/minecraft/village/TradedItem;
intermediary field_45130
Lnet/minecraft/class_3853$class_4161;field_45130:Lnet/minecraft/class_9306;
official a
Lcpm$b;a:Ldgc;
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector named maxUses
Lnet/minecraft/village/TradeOffers$BuyItemFactory;maxUses:I
intermediary field_18550
Lnet/minecraft/class_3853$class_4161;field_18550:I
official b
Lcpm$b;b:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector named experience
Lnet/minecraft/village/TradeOffers$BuyItemFactory;experience:I
intermediary field_18551
Lnet/minecraft/class_3853$class_4161;field_18551:I
official c
Lcpm$b;c:I
-
price
private final int price- Mappings:
Namespace Name Mixin selector named price
Lnet/minecraft/village/TradeOffers$BuyItemFactory;price:I
intermediary field_18549
Lnet/minecraft/class_3853$class_4161;field_18549:I
official d
Lcpm$b;d:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector named multiplier
Lnet/minecraft/village/TradeOffers$BuyItemFactory;multiplier:F
intermediary field_18552
Lnet/minecraft/class_3853$class_4161;field_18552:F
official e
Lcpm$b;e:F
-
-
Constructor Details
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;III)V
official <init>
Lcpm$b;<init>(Ldhg;III)V
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;IIII)V
official <init>
Lcpm$b;<init>(Ldhg;IIII)V
-
BuyItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/village/TradedItem;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_9306;III)V
official <init>
Lcpm$b;<init>(Ldgc;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 named create
Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;
intermediary method_7246
Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
official a
Lcpm$g;a(Lbvj;Lbam;)Ldge;
-