Uses of Class
net.minecraft.enchantment.Enchantment
-
-
Uses of Enchantment in net.minecraft.advancements.criterion
Fields in net.minecraft.advancements.criterion declared as Enchantment Modifier and Type Field Description private Enchantment
EnchantmentPredicate. enchantment
Method parameters in net.minecraft.advancements.criterion with type arguments of type Enchantment Modifier and Type Method Description boolean
EnchantmentPredicate. containedIn(java.util.Map<Enchantment,java.lang.Integer> p_192463_1_)
Constructors in net.minecraft.advancements.criterion with parameters of type Enchantment Constructor Description EnchantmentPredicate(Enchantment p_i49723_1_, MinMaxBounds.IntBound p_i49723_2_)
-
Uses of Enchantment in net.minecraft.command.arguments
Methods in net.minecraft.command.arguments that return Enchantment Modifier and Type Method Description static Enchantment
EnchantmentArgument. getEnchantment(com.mojang.brigadier.context.CommandContext<CommandSource> p_201944_0_, java.lang.String p_201944_1_)
Enchantment
EnchantmentArgument. parse(com.mojang.brigadier.StringReader p_parse_1_)
-
Uses of Enchantment in net.minecraft.command.impl
Methods in net.minecraft.command.impl with parameters of type Enchantment Modifier and Type Method Description private static int
EnchantCommand. enchant(CommandSource p_202651_0_, java.util.Collection<? extends Entity> p_202651_1_, Enchantment p_202651_2_, int p_202651_3_)
-
Uses of Enchantment in net.minecraft.enchantment
Subclasses of Enchantment in net.minecraft.enchantment Modifier and Type Class Description class
AquaAffinityEnchantment
class
BindingCurseEnchantment
class
ChannelingEnchantment
class
DamageEnchantment
class
DepthStriderEnchantment
class
EfficiencyEnchantment
class
FireAspectEnchantment
class
FlameEnchantment
class
FrostWalkerEnchantment
class
ImpalingEnchantment
class
InfinityEnchantment
class
KnockbackEnchantment
class
LootBonusEnchantment
class
LoyaltyEnchantment
class
LureEnchantment
class
MendingEnchantment
class
MultishotEnchantment
class
PiercingEnchantment
class
PowerEnchantment
class
ProtectionEnchantment
class
PunchEnchantment
class
QuickChargeEnchantment
class
RespirationEnchantment
class
RiptideEnchantment
class
SilkTouchEnchantment
class
SoulSpeedEnchantment
class
SweepingEnchantment
class
ThornsEnchantment
class
UnbreakingEnchantment
class
VanishingCurseEnchantment
Fields in net.minecraft.enchantment with type parameters of type Enchantment Modifier and Type Field Description private ReverseTagWrapper<Enchantment>
Enchantment. reverseTags
Methods in net.minecraft.enchantment that return Enchantment Modifier and Type Method Description static Enchantment
Enchantment. byId(int p_185262_0_)
private static Enchantment
Enchantments. register(java.lang.String p_222191_0_, Enchantment p_222191_1_)
Methods in net.minecraft.enchantment that return types with arguments of type Enchantment Modifier and Type Method Description static java.util.Map<Enchantment,java.lang.Integer>
EnchantmentHelper. deserializeEnchantments(ListNBT p_226652_0_)
static java.util.Map<Enchantment,java.lang.Integer>
EnchantmentHelper. getEnchantments(ItemStack p_82781_0_)
Methods in net.minecraft.enchantment with parameters of type Enchantment Modifier and Type Method Description void
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 java.util.Map.Entry<EquipmentSlotType,ItemStack>
EnchantmentHelper. getRandomItemWith(Enchantment p_222189_0_, LivingEntity p_222189_1_)
static java.util.Map.Entry<EquipmentSlotType,ItemStack>
EnchantmentHelper. getRandomItemWith(Enchantment p_234844_0_, LivingEntity p_234844_1_, java.util.function.Predicate<ItemStack> p_234844_2_)
boolean
Enchantment. isCompatibleWith(Enchantment p_191560_1_)
static boolean
EnchantmentHelper. isEnchantmentCompatible(java.util.Collection<Enchantment> p_201840_0_, Enchantment p_201840_1_)
private static Enchantment
Enchantments. register(java.lang.String p_222191_0_, Enchantment p_222191_1_)
Method parameters in net.minecraft.enchantment with type arguments of type Enchantment Modifier and Type Method Description static boolean
EnchantmentHelper. isEnchantmentCompatible(java.util.Collection<Enchantment> p_201840_0_, Enchantment p_201840_1_)
boolean
Enchantment. isIn(ITag<Enchantment> tag)
static void
EnchantmentHelper. setEnchantments(java.util.Map<Enchantment,java.lang.Integer> p_82782_0_, ItemStack p_82782_1_)
Constructors in net.minecraft.enchantment with parameters of type Enchantment Constructor Description EnchantmentData(Enchantment p_i1930_1_, int p_i1930_2_)
-
Uses of Enchantment in net.minecraft.item
Methods in net.minecraft.item with parameters of type Enchantment Modifier and Type Method Description void
ItemStack. enchant(Enchantment p_77966_1_, int p_77966_2_)
-
Uses of Enchantment in net.minecraft.loot.conditions
Fields in net.minecraft.loot.conditions declared as Enchantment Modifier and Type Field Description private Enchantment
TableBonus. enchantment
Methods in net.minecraft.loot.conditions with parameters of type Enchantment Modifier and Type Method Description static ILootCondition.IBuilder
TableBonus. bonusLevelFlatChance(Enchantment p_215955_0_, float... p_215955_1_)
Constructors in net.minecraft.loot.conditions with parameters of type Enchantment Constructor Description TableBonus(Enchantment p_i51207_1_, float[] p_i51207_2_)
-
Uses of Enchantment in net.minecraft.loot.functions
Fields in net.minecraft.loot.functions declared as Enchantment Modifier and Type Field Description private Enchantment
ApplyBonus. enchantment
Fields in net.minecraft.loot.functions with type parameters of type Enchantment Modifier and Type Field Description private java.util.Set<Enchantment>
EnchantRandomly.Builder. enchantments
private java.util.List<Enchantment>
EnchantRandomly. enchantments
Methods in net.minecraft.loot.functions with parameters of type Enchantment Modifier and Type Method Description static 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_, java.util.Random p_237420_2_)
EnchantRandomly.Builder
EnchantRandomly.Builder. withEnchantment(Enchantment p_237424_1_)
Constructors in net.minecraft.loot.functions with parameters of type Enchantment Constructor Description ApplyBonus(ILootCondition[] p_i51246_1_, Enchantment p_i51246_2_, ApplyBonus.IFormula p_i51246_3_)
Constructor parameters in net.minecraft.loot.functions with type arguments of type Enchantment Constructor Description EnchantRandomly(ILootCondition[] p_i51238_1_, java.util.Collection<Enchantment> p_i51238_2_)
-
Uses of Enchantment in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type Enchantment Modifier and Type Field Description static Registry<Enchantment>
Registry. ENCHANTMENT
Deprecated.static RegistryKey<Registry<Enchantment>>
Registry. ENCHANTMENT_REGISTRY
-
Uses of Enchantment in net.minecraftforge.common.data
Methods in net.minecraftforge.common.data with parameters of type Enchantment Modifier and Type Method Description void
LanguageProvider. add(Enchantment key, java.lang.String name)
Method parameters in net.minecraftforge.common.data with type arguments of type Enchantment Modifier and Type Method Description void
LanguageProvider. addEnchantment(java.util.function.Supplier<? extends Enchantment> key, java.lang.String name)
-
Uses of Enchantment in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type Enchantment Modifier and Type Method Description default 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
Subclasses of Enchantment in net.minecraftforge.debug.gameplay.loot Modifier and Type Class Description private static class
GlobalLootModifiersTest.SmelterEnchantment
Fields in net.minecraftforge.debug.gameplay.loot with type parameters of type Enchantment Modifier and Type Field Description private static DeferredRegister<Enchantment>
GlobalLootModifiersTest. ENCHANTS
private 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 Modifier and Type Field Description private static ITag.INamedTag<Enchantment>
CustomTagTypesTest. FIRE
-
Uses of Enchantment in net.minecraftforge.registries
Fields in net.minecraftforge.registries with type parameters of type Enchantment Modifier and Type Field Description static IForgeRegistry<Enchantment>
ForgeRegistries. ENCHANTMENTS
static RegistryKey<Registry<Enchantment>>
ForgeRegistries.Keys. ENCHANTMENTS
-