Uses of Class
net.minecraft.world.item.enchantment.Enchantment
Packages that use Enchantment
Package
Description
-
Uses of Enchantment in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as EnchantmentMethod parameters in net.minecraft.advancements.critereon with type arguments of type EnchantmentModifier and TypeMethodDescriptionbooleanEnchantmentPredicate.containedIn(Map<Enchantment,Integer> p_30477_)Constructors in net.minecraft.advancements.critereon with parameters of type EnchantmentModifierConstructorDescriptionEnchantmentPredicate(Enchantment p_30471_, MinMaxBounds.Ints p_30472_) -
Uses of Enchantment in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return EnchantmentModifier and TypeMethodDescriptionstatic EnchantmentItemEnchantmentArgument.getEnchantment(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_95264_, String p_95265_)ItemEnchantmentArgument.parse(com.mojang.brigadier.StringReader p_95262_) -
Uses of Enchantment in net.minecraft.core
Fields in net.minecraft.core with type parameters of type EnchantmentModifier and TypeFieldDescriptionstatic Registry<Enchantment>Registry.ENCHANTMENTDeprecated.static ResourceKey<Registry<Enchantment>>Registry.ENCHANTMENT_REGISTRY -
Uses of Enchantment in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type EnchantmentModifier and TypeMethodDescriptionprivate static intEnchantCommand.enchant(CommandSourceStack p_137015_, Collection<? extends Entity> p_137016_, Enchantment p_137017_, int p_137018_) -
Uses of Enchantment in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type Enchantment -
Uses of Enchantment in net.minecraft.world.item.enchantment
Subclasses of Enchantment in net.minecraft.world.item.enchantmentModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.item.enchantment declared as EnchantmentModifier and TypeFieldDescriptionstatic EnchantmentEnchantments.ALL_DAMAGE_PROTECTIONstatic EnchantmentEnchantments.AQUA_AFFINITYstatic EnchantmentEnchantments.BANE_OF_ARTHROPODSstatic EnchantmentEnchantments.BINDING_CURSEstatic EnchantmentEnchantments.BLAST_PROTECTIONstatic EnchantmentEnchantments.BLOCK_EFFICIENCYstatic EnchantmentEnchantments.BLOCK_FORTUNEstatic EnchantmentEnchantments.CHANNELINGstatic EnchantmentEnchantments.DEPTH_STRIDEREnchantmentInstance.enchantmentstatic EnchantmentEnchantments.FALL_PROTECTIONstatic EnchantmentEnchantments.FIRE_ASPECTstatic EnchantmentEnchantments.FIRE_PROTECTIONstatic EnchantmentEnchantments.FISHING_LUCKstatic EnchantmentEnchantments.FISHING_SPEEDstatic EnchantmentEnchantments.FLAMING_ARROWSstatic EnchantmentEnchantments.FROST_WALKERstatic EnchantmentEnchantments.IMPALINGstatic EnchantmentEnchantments.INFINITY_ARROWSstatic EnchantmentEnchantments.KNOCKBACKstatic EnchantmentEnchantments.LOYALTYstatic EnchantmentEnchantments.MENDINGstatic EnchantmentEnchantments.MOB_LOOTINGstatic EnchantmentEnchantments.MULTISHOTstatic EnchantmentEnchantments.PIERCINGstatic EnchantmentEnchantments.POWER_ARROWSstatic EnchantmentEnchantments.PROJECTILE_PROTECTIONstatic EnchantmentEnchantments.PUNCH_ARROWSstatic EnchantmentEnchantments.QUICK_CHARGEstatic EnchantmentEnchantments.RESPIRATIONstatic EnchantmentEnchantments.RIPTIDEstatic EnchantmentEnchantments.SHARPNESSstatic EnchantmentEnchantments.SILK_TOUCHstatic EnchantmentEnchantments.SMITEstatic EnchantmentEnchantments.SOUL_SPEEDstatic EnchantmentEnchantments.SWEEPING_EDGEstatic EnchantmentEnchantments.THORNSstatic EnchantmentEnchantments.UNBREAKINGstatic EnchantmentEnchantments.VANISHING_CURSEFields in net.minecraft.world.item.enchantment with type parameters of type EnchantmentMethods in net.minecraft.world.item.enchantment that return EnchantmentModifier and TypeMethodDescriptionstatic EnchantmentEnchantment.byId(int p_44698_)private static EnchantmentEnchantments.register(String p_44993_, Enchantment p_44994_)Methods in net.minecraft.world.item.enchantment that return types with arguments of type EnchantmentModifier and TypeMethodDescriptionstatic Map<Enchantment,Integer>EnchantmentHelper.deserializeEnchantments(ListTag p_44883_)static Map<Enchantment,Integer>EnchantmentHelper.getEnchantments(ItemStack p_44832_)Methods in net.minecraft.world.item.enchantment with parameters of type EnchantmentModifier and TypeMethodDescriptionvoidEnchantmentHelper.EnchantmentVisitor.accept(Enchantment p_44945_, int p_44946_)booleanArrowInfiniteEnchantment.checkCompatibility(Enchantment p_44590_)booleanArrowPiercingEnchantment.checkCompatibility(Enchantment p_44608_)booleanDamageEnchantment.checkCompatibility(Enchantment p_44644_)protected booleanEnchantment.checkCompatibility(Enchantment p_44690_)booleanFrostWalkerEnchantment.checkCompatibility(Enchantment p_45024_)booleanLootBonusEnchantment.checkCompatibility(Enchantment p_45094_)booleanMultiShotEnchantment.checkCompatibility(Enchantment p_45113_)booleanProtectionEnchantment.checkCompatibility(Enchantment p_45142_)booleanTridentRiptideEnchantment.checkCompatibility(Enchantment p_45256_)booleanUntouchingEnchantment.checkCompatibility(Enchantment p_45266_)booleanWaterWalkerEnchantment.checkCompatibility(Enchantment p_45286_)static ResourceLocationEnchantmentHelper.getEnchantmentId(Enchantment p_182433_)static intEnchantmentHelper.getEnchantmentLevel(Enchantment p_44837_, LivingEntity p_44838_)static intEnchantmentHelper.getItemEnchantmentLevel(Enchantment p_44844_, ItemStack p_44845_)static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper.getRandomItemWith(Enchantment p_44907_, LivingEntity p_44908_)static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper.getRandomItemWith(Enchantment p_44840_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_)booleanEnchantment.isCompatibleWith(Enchantment p_44696_)static booleanEnchantmentHelper.isEnchantmentCompatible(Collection<Enchantment> p_44860_, Enchantment p_44861_)private static EnchantmentEnchantments.register(String p_44993_, Enchantment p_44994_)Method parameters in net.minecraft.world.item.enchantment with type arguments of type EnchantmentModifier and TypeMethodDescriptionbooleanEnchantment.is(Tag<Enchantment> tag)static booleanEnchantmentHelper.isEnchantmentCompatible(Collection<Enchantment> p_44860_, Enchantment p_44861_)static voidEnchantmentHelper.setEnchantments(Map<Enchantment,Integer> p_44866_, ItemStack p_44867_)Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment -
Uses of Enchantment in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as EnchantmentFields in net.minecraft.world.level.storage.loot.functions with type parameters of type EnchantmentModifier and TypeFieldDescriptionprivate Set<Enchantment>EnchantRandomlyFunction.Builder.enchantments(package private) List<Enchantment>EnchantRandomlyFunction.enchantmentsprivate Map<Enchantment,NumberProvider>SetEnchantmentsFunction.Builder.enchantments(package private) Map<Enchantment,NumberProvider>SetEnchantmentsFunction.enchantmentsMethods in net.minecraft.world.level.storage.loot.functions with parameters of type EnchantmentModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder<?>ApplyBonusCount.addBonusBinomialDistributionCount(Enchantment p_79918_, float p_79919_, int p_79920_)static LootItemConditionalFunction.Builder<?>ApplyBonusCount.addOreBonusCount(Enchantment p_79916_)static LootItemConditionalFunction.Builder<?>ApplyBonusCount.addUniformBonusCount(Enchantment p_79940_)static LootItemConditionalFunction.Builder<?>ApplyBonusCount.addUniformBonusCount(Enchantment p_79922_, int p_79923_)private static ItemStackEnchantRandomlyFunction.enchantItem(ItemStack p_80425_, Enchantment p_80426_, Random p_80427_)private static voidSetEnchantmentsFunction.updateEnchantment(Map<Enchantment,Integer> p_165356_, Enchantment p_165357_, int p_165358_)EnchantRandomlyFunction.Builder.withEnchantment(Enchantment p_80445_)SetEnchantmentsFunction.Builder.withEnchantment(Enchantment p_165375_, NumberProvider p_165376_)Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type EnchantmentModifier and TypeMethodDescriptionprivate static voidSetEnchantmentsFunction.updateEnchantment(Map<Enchantment,Integer> p_165356_, Enchantment p_165357_, int p_165358_)Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type EnchantmentModifierConstructorDescription(package private)ApplyBonusCount(LootItemCondition[] p_79903_, Enchantment p_79904_, ApplyBonusCount.Formula p_79905_)Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type EnchantmentModifierConstructorDescription(package private)EnchantRandomlyFunction(LootItemCondition[] p_80418_, Collection<Enchantment> p_80419_)(package private)SetEnchantmentsFunction(LootItemCondition[] p_165337_, Map<Enchantment,NumberProvider> p_165338_, boolean p_165339_) -
Uses of Enchantment in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as EnchantmentModifier and TypeFieldDescription(package private) EnchantmentBonusLevelTableCondition.enchantmentMethods in net.minecraft.world.level.storage.loot.predicates with parameters of type EnchantmentModifier and TypeMethodDescriptionstatic LootItemCondition.BuilderBonusLevelTableCondition.bonusLevelFlatChance(Enchantment p_81518_, float... p_81519_)Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type EnchantmentModifierConstructorDescription(package private)BonusLevelTableCondition(Enchantment p_81510_, float[] p_81511_) -
Uses of Enchantment in net.minecraftforge.common.data
Methods in net.minecraftforge.common.data with parameters of type EnchantmentMethod parameters in net.minecraftforge.common.data with type arguments of type EnchantmentModifier and TypeMethodDescriptionvoidLanguageProvider.addEnchantment(Supplier<? extends Enchantment> key, String name) -
Uses of Enchantment in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type EnchantmentModifier and TypeMethodDescriptiondefault booleanIForgeItem.canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment)Checks whether an item can be enchanted with a certain enchantment.default booleanIForgeItemStack.canApplyAtEnchantingTable(Enchantment enchantment)Checks whether an item can be enchanted with a certain enchantment. -
Uses of Enchantment in net.minecraftforge.debug.gameplay.loot
Subclasses of Enchantment in net.minecraftforge.debug.gameplay.lootFields in net.minecraftforge.debug.gameplay.loot with type parameters of type EnchantmentModifier and TypeFieldDescriptionprivate static DeferredRegister<Enchantment>GlobalLootModifiersTest.ENCHANTSprivate static RegistryObject<Enchantment>GlobalLootModifiersTest.SMELT -
Uses of Enchantment in net.minecraftforge.debug.misc
Fields in net.minecraftforge.debug.misc with type parameters of type Enchantment -
Uses of Enchantment in net.minecraftforge.registries
Fields in net.minecraftforge.registries with type parameters of type EnchantmentModifier and TypeFieldDescriptionstatic IForgeRegistry<Enchantment>ForgeRegistries.ENCHANTMENTSstatic ResourceKey<Registry<Enchantment>>ForgeRegistries.Keys.ENCHANTMENTS