Uses of Class
net.minecraft.world.item.enchantment.Enchantment
Package
Description
-
Uses of Enchantment in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
EnchantmentPredicate.containedIn(Map<Enchantment,Integer> p_30477_)
ModifierConstructorDescriptionEnchantmentPredicate(Enchantment p_30471_, MinMaxBounds.Ints p_30472_)
-
Uses of Enchantment in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic Enchantment
ItemEnchantmentArgument.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
Modifier and TypeFieldDescriptionstatic Registry<Enchantment>
Registry.ENCHANTMENT
Deprecated.static ResourceKey<Registry<Enchantment>>
Registry.ENCHANTMENT_REGISTRY
-
Uses of Enchantment in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
EnchantCommand.enchant(CommandSourceStack p_137015_, Collection<? extends Entity> p_137016_, Enchantment p_137017_, int p_137018_)
-
Uses of Enchantment in net.minecraft.world.item
-
Uses of Enchantment in net.minecraft.world.item.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 Enchantment
Enchantments.ALL_DAMAGE_PROTECTION
static Enchantment
Enchantments.AQUA_AFFINITY
static Enchantment
Enchantments.BANE_OF_ARTHROPODS
static Enchantment
Enchantments.BINDING_CURSE
static Enchantment
Enchantments.BLAST_PROTECTION
static Enchantment
Enchantments.BLOCK_EFFICIENCY
static Enchantment
Enchantments.BLOCK_FORTUNE
static Enchantment
Enchantments.CHANNELING
static Enchantment
Enchantments.DEPTH_STRIDER
EnchantmentInstance.enchantment
static Enchantment
Enchantments.FALL_PROTECTION
static Enchantment
Enchantments.FIRE_ASPECT
static Enchantment
Enchantments.FIRE_PROTECTION
static Enchantment
Enchantments.FISHING_LUCK
static Enchantment
Enchantments.FISHING_SPEED
static Enchantment
Enchantments.FLAMING_ARROWS
static Enchantment
Enchantments.FROST_WALKER
static Enchantment
Enchantments.IMPALING
static Enchantment
Enchantments.INFINITY_ARROWS
static Enchantment
Enchantments.KNOCKBACK
static Enchantment
Enchantments.LOYALTY
static Enchantment
Enchantments.MENDING
static Enchantment
Enchantments.MOB_LOOTING
static Enchantment
Enchantments.MULTISHOT
static Enchantment
Enchantments.PIERCING
static Enchantment
Enchantments.POWER_ARROWS
static Enchantment
Enchantments.PROJECTILE_PROTECTION
static Enchantment
Enchantments.PUNCH_ARROWS
static Enchantment
Enchantments.QUICK_CHARGE
static Enchantment
Enchantments.RESPIRATION
static Enchantment
Enchantments.RIPTIDE
static Enchantment
Enchantments.SHARPNESS
static Enchantment
Enchantments.SILK_TOUCH
static Enchantment
Enchantments.SMITE
static Enchantment
Enchantments.SOUL_SPEED
static Enchantment
Enchantments.SWEEPING_EDGE
static Enchantment
Enchantments.THORNS
static Enchantment
Enchantments.UNBREAKING
static Enchantment
Enchantments.VANISHING_CURSE
Modifier and TypeMethodDescriptionstatic Enchantment
Enchantment.byId(int p_44698_)
private static Enchantment
Enchantments.register(String p_44993_, Enchantment p_44994_)
Modifier and TypeMethodDescriptionstatic Map<Enchantment,Integer>
EnchantmentHelper.deserializeEnchantments(ListTag p_44883_)
static Map<Enchantment,Integer>
EnchantmentHelper.getEnchantments(ItemStack p_44832_)
Modifier and TypeMethodDescriptionvoid
EnchantmentHelper.EnchantmentVisitor.accept(Enchantment p_44945_, int p_44946_)
boolean
ArrowInfiniteEnchantment.checkCompatibility(Enchantment p_44590_)
boolean
ArrowPiercingEnchantment.checkCompatibility(Enchantment p_44608_)
boolean
DamageEnchantment.checkCompatibility(Enchantment p_44644_)
protected boolean
Enchantment.checkCompatibility(Enchantment p_44690_)
boolean
FrostWalkerEnchantment.checkCompatibility(Enchantment p_45024_)
boolean
LootBonusEnchantment.checkCompatibility(Enchantment p_45094_)
boolean
MultiShotEnchantment.checkCompatibility(Enchantment p_45113_)
boolean
ProtectionEnchantment.checkCompatibility(Enchantment p_45142_)
boolean
TridentRiptideEnchantment.checkCompatibility(Enchantment p_45256_)
boolean
UntouchingEnchantment.checkCompatibility(Enchantment p_45266_)
boolean
WaterWalkerEnchantment.checkCompatibility(Enchantment p_45286_)
static ResourceLocation
EnchantmentHelper.getEnchantmentId(Enchantment p_182433_)
static int
EnchantmentHelper.getEnchantmentLevel(Enchantment p_44837_, LivingEntity p_44838_)
static int
EnchantmentHelper.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_)
boolean
Enchantment.isCompatibleWith(Enchantment p_44696_)
static boolean
EnchantmentHelper.isEnchantmentCompatible(Collection<Enchantment> p_44860_, Enchantment p_44861_)
private static Enchantment
Enchantments.register(String p_44993_, Enchantment p_44994_)
Modifier and TypeMethodDescriptionboolean
Enchantment.is(Tag<Enchantment> tag)
static boolean
EnchantmentHelper.isEnchantmentCompatible(Collection<Enchantment> p_44860_, Enchantment p_44861_)
static void
EnchantmentHelper.setEnchantments(Map<Enchantment,Integer> p_44866_, ItemStack p_44867_)
-
Uses of Enchantment in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionprivate Set<Enchantment>
EnchantRandomlyFunction.Builder.enchantments
(package private) List<Enchantment>
EnchantRandomlyFunction.enchantments
private Map<Enchantment,NumberProvider>
SetEnchantmentsFunction.Builder.enchantments
(package private) Map<Enchantment,NumberProvider>
SetEnchantmentsFunction.enchantments
Modifier 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 ItemStack
EnchantRandomlyFunction.enchantItem(ItemStack p_80425_, Enchantment p_80426_, Random p_80427_)
private static void
SetEnchantmentsFunction.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_)
Modifier and TypeMethodDescriptionprivate static void
SetEnchantmentsFunction.updateEnchantment(Map<Enchantment,Integer> p_165356_, Enchantment p_165357_, int p_165358_)
ModifierConstructorDescription(package private)
ApplyBonusCount(LootItemCondition[] p_79903_, Enchantment p_79904_, ApplyBonusCount.Formula p_79905_)
ModifierConstructorDescription(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
Modifier and TypeFieldDescription(package private) Enchantment
BonusLevelTableCondition.enchantment
Modifier and TypeMethodDescriptionstatic LootItemCondition.Builder
BonusLevelTableCondition.bonusLevelFlatChance(Enchantment p_81518_, float... p_81519_)
ModifierConstructorDescription(package private)
BonusLevelTableCondition(Enchantment p_81510_, float[] p_81511_)
-
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 DeferredRegister<Enchantment>
GlobalLootModifiersTest.ENCHANTS
private static RegistryObject<Enchantment>
GlobalLootModifiersTest.SMELT
-
Uses of Enchantment in net.minecraftforge.debug.misc
-
Uses of Enchantment in net.minecraftforge.registries
Modifier and TypeFieldDescriptionstatic IForgeRegistry<Enchantment>
ForgeRegistries.ENCHANTMENTS
static ResourceKey<Registry<Enchantment>>
ForgeRegistries.Keys.ENCHANTMENTS