Package net.minecraft.village
Class TradeOffers.BuyForOneEmeraldFactory
java.lang.Object
net.minecraft.village.TradeOffers.BuyForOneEmeraldFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.BuyForOneEmeraldFactory extends Object implements TradeOffers.Factory
- Mappings:
Namespace Name official bhc$b
intermediary net/minecraft/class_3853$class_4161
named net/minecraft/village/TradeOffers$BuyForOneEmeraldFactory
-
Field Summary
Fields Modifier and Type Field Description private Item
buy
private int
experience
private int
maxUses
private float
multiplier
private int
price
-
Constructor Summary
Constructors Constructor Description BuyForOneEmeraldFactory(ItemConvertible item, 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
-
buy
- Mappings:
Namespace Name Mixin selector official a
Lbhc$b;a:Lbnr;
intermediary field_18548
Lnet/minecraft/class_3853$class_4161;field_18548:Lnet/minecraft/class_1792;
named buy
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;buy:Lnet/minecraft/item/Item;
-
price
private final int price- Mappings:
Namespace Name Mixin selector official b
Lbhc$b;b:I
intermediary field_18549
Lnet/minecraft/class_3853$class_4161;field_18549:I
named price
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;price:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official c
Lbhc$b;c:I
intermediary field_18550
Lnet/minecraft/class_3853$class_4161;field_18550:I
named maxUses
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official d
Lbhc$b;d:I
intermediary field_18551
Lnet/minecraft/class_3853$class_4161;field_18551:I
named experience
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;experience:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector official e
Lbhc$b;e:F
intermediary field_18552
Lnet/minecraft/class_3853$class_4161;field_18552:F
named multiplier
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;multiplier:F
-
-
Constructor Details
-
BuyForOneEmeraldFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$b;<init>(Lbtu;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;III)V
named <init>
Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;<init>(Lnet/minecraft/item/ItemConvertible;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;
-