Package net.minecraft.world.entity.npc
Class VillagerTrades.EnchantBookForEmeralds
java.lang.Object
net.minecraft.world.entity.npc.VillagerTrades.EnchantBookForEmeralds
- All Implemented Interfaces:
VillagerTrades.ItemListing
- Enclosing class:
VillagerTrades
public static class VillagerTrades.EnchantBookForEmeralds
extends Object
implements VillagerTrades.ItemListing
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final List
<Enchantment> private final int
-
Constructor Summary
ConstructorDescriptionEnchantBookForEmeralds
(int p_35683_) EnchantBookForEmeralds
(int p_298418_, int p_298463_, int p_299740_, Enchantment... p_298809_) EnchantBookForEmeralds
(int p_299760_, Enchantment... p_301263_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Enchantment
getEnchantment
(RandomSource p_336407_, FeatureFlagSet p_336408_) getOffer
(Entity p_219688_, RandomSource p_219689_)
-
Field Details
-
villagerXp
private final int villagerXp -
tradeableEnchantments
-
minLevel
private final int minLevel -
maxLevel
private final int maxLevel
-
-
Constructor Details
-
EnchantBookForEmeralds
public EnchantBookForEmeralds(int p_35683_) -
EnchantBookForEmeralds
-
EnchantBookForEmeralds
public EnchantBookForEmeralds(int p_298418_, int p_298463_, int p_299740_, Enchantment... p_298809_)
-
-
Method Details
-
getEnchantment
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-