Package net.minecraft.village
Class TradeOffers.EnchantBookFactory
java.lang.Object
net.minecraft.village.TradeOffers.EnchantBookFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
TradeOffers
- Mappings:
Namespace Name official cez$d
intermediary net/minecraft/class_3853$class_1648
named net/minecraft/village/TradeOffers$EnchantBookFactory
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final int
private final List<Enchantment>
-
Constructor Summary
ConstructorDescriptionEnchantBookFactory
(int experience) EnchantBookFactory
(int experience, int minLevel, int maxLevel, Enchantment[] possibleEnchantments) EnchantBookFactory
(int experience, Enchantment[] possibleEnchantments) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official a
Lcez$d;a:I
intermediary field_18557
Lnet/minecraft/class_3853$class_1648;field_18557:I
named experience
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;experience:I
-
possibleEnchantments
- Mappings:
Namespace Name Mixin selector official b
Lcez$d;b:Ljava/util/List;
intermediary field_45131
Lnet/minecraft/class_3853$class_1648;field_45131:Ljava/util/List;
named possibleEnchantments
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;possibleEnchantments:Ljava/util/List;
-
minLevel
private final int minLevel- Mappings:
Namespace Name Mixin selector official c
Lcez$d;c:I
intermediary field_45132
Lnet/minecraft/class_3853$class_1648;field_45132:I
named minLevel
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;minLevel:I
-
maxLevel
private final int maxLevel- Mappings:
Namespace Name Mixin selector official d
Lcez$d;d:I
intermediary field_45133
Lnet/minecraft/class_3853$class_1648;field_45133:I
named maxLevel
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;maxLevel:I
-
-
Constructor Details
-
EnchantBookFactory
public EnchantBookFactory(int experience) - Mappings:
Namespace Name Mixin selector official <init>
Lcez$d;<init>(I)V
intermediary <init>
Lnet/minecraft/class_3853$class_1648;<init>(I)V
named <init>
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(I)V
-
EnchantBookFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lcez$d;<init>(I[Lcrj;)V
intermediary <init>
Lnet/minecraft/class_3853$class_1648;<init>(I[Lnet/minecraft/class_1887;)V
named <init>
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(I[Lnet/minecraft/enchantment/Enchantment;)V
-
EnchantBookFactory
public EnchantBookFactory(int experience, int minLevel, int maxLevel, Enchantment[] possibleEnchantments) - Mappings:
Namespace Name Mixin selector official <init>
Lcez$d;<init>(III[Lcrj;)V
intermediary <init>
Lnet/minecraft/class_3853$class_1648;<init>(III[Lnet/minecraft/class_1887;)V
named <init>
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(III[Lnet/minecraft/enchantment/Enchantment;)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
Lcez$g;a(Lblv;Lauv;)Lcsn;
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;
-