Uses of Class
net.minecraft.enchantment.Enchantment
Package
Description
-
Uses of Enchantment in net.minecraft.advancements.criterion
Modifier and TypeMethodDescriptionboolean
EnchantmentPredicate.containedIn
(Map<Enchantment, Integer> p_192463_1_) ModifierConstructorDescriptionEnchantmentPredicate
(Enchantment p_i49723_1_, MinMaxBounds.IntBound p_i49723_2_) -
Uses of Enchantment in net.minecraft.command.arguments
Modifier and TypeMethodDescriptionstatic Enchantment
EnchantmentArgument.getEnchantment
(com.mojang.brigadier.context.CommandContext<CommandSource> p_201944_0_, String p_201944_1_) EnchantmentArgument.parse
(com.mojang.brigadier.StringReader p_parse_1_) -
Uses of Enchantment in net.minecraft.command.impl
Modifier and TypeMethodDescriptionprivate static int
EnchantCommand.enchant
(CommandSource p_202651_0_, Collection<? extends Entity> p_202651_1_, Enchantment p_202651_2_, int p_202651_3_) -
Uses of Enchantment in net.minecraft.enchantment
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionstatic final Enchantment
Enchantments.ALL_DAMAGE_PROTECTION
static final Enchantment
Enchantments.AQUA_AFFINITY
static final Enchantment
Enchantments.BANE_OF_ARTHROPODS
static final Enchantment
Enchantments.BINDING_CURSE
static final Enchantment
Enchantments.BLAST_PROTECTION
static final Enchantment
Enchantments.BLOCK_EFFICIENCY
static final Enchantment
Enchantments.BLOCK_FORTUNE
static final Enchantment
Enchantments.CHANNELING
static final Enchantment
Enchantments.DEPTH_STRIDER
final Enchantment
EnchantmentData.enchantment
static final Enchantment
Enchantments.FALL_PROTECTION
static final Enchantment
Enchantments.FIRE_ASPECT
static final Enchantment
Enchantments.FIRE_PROTECTION
static final Enchantment
Enchantments.FISHING_LUCK
static final Enchantment
Enchantments.FISHING_SPEED
static final Enchantment
Enchantments.FLAMING_ARROWS
static final Enchantment
Enchantments.FROST_WALKER
static final Enchantment
Enchantments.IMPALING
static final Enchantment
Enchantments.INFINITY_ARROWS
static final Enchantment
Enchantments.KNOCKBACK
static final Enchantment
Enchantments.LOYALTY
static final Enchantment
Enchantments.MENDING
static final Enchantment
Enchantments.MOB_LOOTING
static final Enchantment
Enchantments.MULTISHOT
static final Enchantment
Enchantments.PIERCING
static final Enchantment
Enchantments.POWER_ARROWS
static final Enchantment
Enchantments.PROJECTILE_PROTECTION
static final Enchantment
Enchantments.PUNCH_ARROWS
static final Enchantment
Enchantments.QUICK_CHARGE
static final Enchantment
Enchantments.RESPIRATION
static final Enchantment
Enchantments.RIPTIDE
static final Enchantment
Enchantments.SHARPNESS
static final Enchantment
Enchantments.SILK_TOUCH
static final Enchantment
Enchantments.SMITE
static final Enchantment
Enchantments.SOUL_SPEED
static final Enchantment
Enchantments.SWEEPING_EDGE
static final Enchantment
Enchantments.THORNS
static final Enchantment
Enchantments.UNBREAKING
static final Enchantment
Enchantments.VANISHING_CURSE
Modifier and TypeFieldDescriptionprivate final ReverseTagWrapper<Enchantment>
Enchantment.reverseTags
Modifier and TypeMethodDescriptionstatic Enchantment
Enchantment.byId
(int p_185262_0_) private static Enchantment
Enchantments.register
(String p_222191_0_, Enchantment p_222191_1_) Modifier and TypeMethodDescriptionstatic Map<Enchantment,
Integer> EnchantmentHelper.deserializeEnchantments
(ListNBT p_226652_0_) static Map<Enchantment,
Integer> EnchantmentHelper.getEnchantments
(ItemStack p_82781_0_) Modifier and TypeMethodDescriptionvoid
EnchantmentHelper.IEnchantmentVisitor.accept
(Enchantment p_accept_1_, int p_accept_2_) boolean
ChannelingEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
DamageEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
DepthStriderEnchantment.checkCompatibility
(Enchantment p_77326_1_) protected boolean
Enchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
FrostWalkerEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
InfinityEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
LootBonusEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
LoyaltyEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
MultishotEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
PiercingEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
ProtectionEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
RiptideEnchantment.checkCompatibility
(Enchantment p_77326_1_) boolean
SilkTouchEnchantment.checkCompatibility
(Enchantment p_77326_1_) static int
EnchantmentHelper.getEnchantmentLevel
(Enchantment p_185284_0_, LivingEntity p_185284_1_) static int
EnchantmentHelper.getItemEnchantmentLevel
(Enchantment p_77506_0_, ItemStack p_77506_1_) static Map.Entry<EquipmentSlotType,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_222189_0_, LivingEntity p_222189_1_) static Map.Entry<EquipmentSlotType,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_234844_0_, LivingEntity p_234844_1_, Predicate<ItemStack> p_234844_2_) final boolean
Enchantment.isCompatibleWith
(Enchantment p_191560_1_) static boolean
EnchantmentHelper.isEnchantmentCompatible
(Collection<Enchantment> p_201840_0_, Enchantment p_201840_1_) private static Enchantment
Enchantments.register
(String p_222191_0_, Enchantment p_222191_1_) Modifier and TypeMethodDescriptionstatic boolean
EnchantmentHelper.isEnchantmentCompatible
(Collection<Enchantment> p_201840_0_, Enchantment p_201840_1_) boolean
Enchantment.isIn
(ITag<Enchantment> tag) static void
EnchantmentHelper.setEnchantments
(Map<Enchantment, Integer> p_82782_0_, ItemStack p_82782_1_) -
Uses of Enchantment in net.minecraft.item
-
Uses of Enchantment in net.minecraft.loot.conditions
Modifier and TypeMethodDescriptionstatic ILootCondition.IBuilder
TableBonus.bonusLevelFlatChance
(Enchantment p_215955_0_, float... p_215955_1_) -
Uses of Enchantment in net.minecraft.loot.functions
Modifier and TypeFieldDescriptionprivate final Set<Enchantment>
EnchantRandomly.Builder.enchantments
private final List<Enchantment>
EnchantRandomly.enchantments
Modifier and TypeMethodDescriptionstatic LootFunction.Builder<?>
ApplyBonus.addBonusBinomialDistributionCount
(Enchantment p_215870_0_, float p_215870_1_, int p_215870_2_) static LootFunction.Builder<?>
ApplyBonus.addOreBonusCount
(Enchantment p_215869_0_) static LootFunction.Builder<?>
ApplyBonus.addUniformBonusCount
(Enchantment p_215871_0_) static LootFunction.Builder<?>
ApplyBonus.addUniformBonusCount
(Enchantment p_215865_0_, int p_215865_1_) private static ItemStack
EnchantRandomly.enchantItem
(ItemStack p_237420_0_, Enchantment p_237420_1_, Random p_237420_2_) EnchantRandomly.Builder.withEnchantment
(Enchantment p_237424_1_) ModifierConstructorDescriptionprivate
ApplyBonus
(ILootCondition[] p_i51246_1_, Enchantment p_i51246_2_, ApplyBonus.IFormula p_i51246_3_) ModifierConstructorDescriptionprivate
EnchantRandomly
(ILootCondition[] p_i51238_1_, Collection<Enchantment> p_i51238_2_) -
Uses of Enchantment in net.minecraft.util.registry
Modifier and TypeFieldDescriptionstatic final Registry<Enchantment>
Registry.ENCHANTMENT
Deprecated.static final RegistryKey<Registry<Enchantment>>
Registry.ENCHANTMENT_REGISTRY
-
Uses of Enchantment in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionvoid
LanguageProvider.addEnchantment
(Supplier<? extends Enchantment> key, String name) -
Uses of Enchantment in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeItem.canApplyAtEnchantingTable
(ItemStack stack, Enchantment enchantment) Checks whether an item can be enchanted with a certain enchantment.default boolean
IForgeItemStack.canApplyAtEnchantingTable
(Enchantment enchantment) Checks whether an item can be enchanted with a certain enchantment. -
Uses of Enchantment in net.minecraftforge.debug.gameplay.loot
Modifier and TypeFieldDescriptionprivate static final DeferredRegister<Enchantment>
GlobalLootModifiersTest.ENCHANTS
private static final RegistryObject<Enchantment>
GlobalLootModifiersTest.SMELT
-
Uses of Enchantment in net.minecraftforge.debug.misc
Modifier and TypeFieldDescriptionprivate static final ITag.INamedTag<Enchantment>
CustomTagTypesTest.FIRE
-
Uses of Enchantment in net.minecraftforge.registries
Modifier and TypeFieldDescriptionstatic final IForgeRegistry<Enchantment>
ForgeRegistries.ENCHANTMENTS
static final RegistryKey<Registry<Enchantment>>
ForgeRegistries.Keys.ENCHANTMENTS