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 btt$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
Lbtt$b;a:Lcat;
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
Lbtt$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
Lbtt$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
Lbtt$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
Lbtt$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>
Lbtt$b;<init>(Lcgw;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
Lbtt$f;a(Lbbn;Lamn;)Lcfv;
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;
-