Uses of Class
net.minecraft.enchantment.EnchantmentLevelEntry
-
Uses of EnchantmentLevelEntry in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic List
<EnchantmentLevelEntry> EnchantmentHelper.generateEnchantments
(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Generate the enchantments for enchanting thestack
.static List
<EnchantmentLevelEntry> EnchantmentHelper.getPossibleEntries
(int level, ItemStack stack, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Gets all the possible entries for enchanting thestack
at the givenpower
.Modifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.getEnchantedBookWith
(EnchantmentLevelEntry entry) static void
EnchantmentHelper.removeConflicts
(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry) Remove entries conflicting with the picked entry from the possible entries.Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.removeConflicts
(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry) Remove entries conflicting with the picked entry from the possible entries. -
Uses of EnchantmentLevelEntry in net.minecraft.screen
Modifier and TypeMethodDescriptionprivate List
<EnchantmentLevelEntry> EnchantmentScreenHandler.generateEnchantments
(DynamicRegistryManager registryManager, ItemStack stack, int slot, int level)