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 named net/minecraft/village/TradeOffers$EnchantBookFactory
intermediary net/minecraft/class_3853$class_1648
official cpm$d
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final int
private final TagKey
<Enchantment> -
Constructor Summary
ConstructorDescriptionEnchantBookFactory
(int experience, int minLevel, int maxLevel, TagKey<Enchantment> possibleEnchantments) EnchantBookFactory
(int experience, TagKey<Enchantment> possibleEnchantments) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector named experience
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;experience:I
intermediary field_18557
Lnet/minecraft/class_3853$class_1648;field_18557:I
official a
Lcpm$d;a:I
-
possibleEnchantments
- Mappings:
Namespace Name Mixin selector named possibleEnchantments
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;possibleEnchantments:Lnet/minecraft/registry/tag/TagKey;
intermediary field_45131
Lnet/minecraft/class_3853$class_1648;field_45131:Lnet/minecraft/class_6862;
official b
Lcpm$d;b:Layk;
-
minLevel
private final int minLevel- Mappings:
Namespace Name Mixin selector named minLevel
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;minLevel:I
intermediary field_45132
Lnet/minecraft/class_3853$class_1648;field_45132:I
official c
Lcpm$d;c:I
-
maxLevel
private final int maxLevel- Mappings:
Namespace Name Mixin selector named maxLevel
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;maxLevel:I
intermediary field_45133
Lnet/minecraft/class_3853$class_1648;field_45133:I
official d
Lcpm$d;d:I
-
-
Constructor Details
-
EnchantBookFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(ILnet/minecraft/registry/tag/TagKey;)V
intermediary <init>
Lnet/minecraft/class_3853$class_1648;<init>(ILnet/minecraft/class_6862;)V
official <init>
Lcpm$d;<init>(ILayk;)V
-
EnchantBookFactory
public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> possibleEnchantments) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(IIILnet/minecraft/registry/tag/TagKey;)V
intermediary <init>
Lnet/minecraft/class_3853$class_1648;<init>(IIILnet/minecraft/class_6862;)V
official <init>
Lcpm$d;<init>(IIILayk;)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;
-