Package net.minecraft.village
Class TradeOffers.BuyForOneEmeraldFactory
java.lang.Object
net.minecraft.village.TradeOffers.BuyForOneEmeraldFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
private static class TradeOffers.BuyForOneEmeraldFactory
extends Object
implements TradeOffers.Factory
- Mappings:
Namespace Name official bni$b
intermediary net/minecraft/class_3853$class_4161
named net/minecraft/village/TradeOffers$BuyForOneEmeraldFactory
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Item
private final int
private final int
private final float
private final int
-
Constructor Summary
ConstructorDescriptionBuyForOneEmeraldFactory
(ItemConvertible item, int price, int maxUses, int experience) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
buy
- Mappings:
Namespace Name Mixin selector official a
Lbni$b;a:Lbua;
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
Lbni$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
Lbni$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
Lbni$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
Lbni$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>
Lbni$b;<init>(Lcac;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
Lbni$f;a(Lawt;Ljava/util/Random;)Lbzb;
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;
-