net.minecraft.world.item.enchantment

public class EnchantmentHelper

dac
net.minecraft.world.item.enchantment.EnchantmentHelper
net.minecraft.class_1890
net.minecraft.unmapped.C_jakrppis
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.src.C_1522_
net.minecraft.world.item.enchantment.Enchantment

Field summary

Modifier and TypeField
private static final float
a
SWIFT_SNEAK_EXTRA_FACTOR
field_38222
f_afoqjohi
field_38222
SWIFT_SNEAK_EXTRA_FACTOR
f_220286_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static int
a(dab arg0, cuq arg1)
getItemEnchantmentLevel(Enchantment arg0, ItemStack arg1)
method_8225(class_1887 arg0, class_1799 arg1)
m_byjosehc(C_jxtrubuh arg0, C_sddaxwyk arg1)
getLevel(Enchantment enchantment, ItemStack stack)
getLevel(Enchantment enchantment, ItemStack stack)
m_44843_(C_1505_ p_44844_, C_1391_ p_44845_)
public static ItemEnchantments
a(cuq arg0, Consumer<dag$a> arg1)
updateEnchantments(ItemStack arg0, Consumer<ItemEnchantments$Mutable> arg1)
method_57531(class_1799 arg0, Consumer<class_9304$class_9305> arg1)
m_iefpfmdo(C_sddaxwyk arg0, Consumer<C_qlclfxvn$C_vbojeisc> arg1)
apply(ItemStack stack, Consumer<ItemEnchantmentsComponent$Builder> applier)
m_iefpfmdo(ItemStack stack, Consumer<ItemEnchantmentsComponent$Builder> arg1)
m_320959_(C_1391_ p_333740_, Consumer<C_313873_$C_313506_> p_328467_)
public static boolean
a(cuq arg0)
canStoreEnchantments(ItemStack arg0)
method_57529(class_1799 arg0)
m_mimuzvcl(C_sddaxwyk arg0)
canHaveEnchantments(ItemStack stack)
m_mimuzvcl(ItemStack stack)
m_320740_(C_1391_ p_333572_)
public static void
a(cuq arg0, dag arg1)
setEnchantments(ItemStack arg0, ItemEnchantments arg1)
method_57530(class_1799 arg0, class_9304 arg1)
m_ybhxtwqv(C_sddaxwyk arg0, C_qlclfxvn arg1)
set(ItemStack stack, ItemEnchantmentsComponent enchantments)
set(ItemStack stack, ItemEnchantmentsComponent value)
m_44865_(C_1391_ p_44867_, C_313873_ p_330134_)
public static ItemEnchantments
b(cuq arg0)
getEnchantmentsForCrafting(ItemStack arg0)
method_57532(class_1799 arg0)
m_uyoiclvv(C_sddaxwyk arg0)
getEnchantments(ItemStack stack)
m_uyoiclvv(ItemStack stack)
m_324152_(C_1391_ p_335659_)
private static DataComponentType<ItemEnchantments>
l(cuq arg0)
getComponentType(ItemStack arg0)
method_57533(class_1799 arg0)
m_fbcdwuju(C_sddaxwyk arg0)
getEnchantmentsComponentType(ItemStack stack)
m_fbcdwuju(ItemStack stack)
m_322805_(C_1391_ p_335414_)
public static boolean
c(cuq arg0)
hasAnyEnchantments(ItemStack arg0)
method_58117(class_1799 arg0)
m_koeurtnx(C_sddaxwyk arg0)
hasEnchantments(ItemStack stack)
m_koeurtnx(ItemStack stack)
m_322755_(C_1391_ p_335287_)
public static float
a(int arg0)
getSweepingDamageRatio(int arg0)
method_58448(int arg0)
m_yivqyckp(int arg0)
getSweepingMultiplier(int level)
m_323615_(int p_332009_)
private static void
a(dac$a arg0, cuq arg1)
runIterationOnItem(EnchantmentHelper$EnchantmentVisitor arg0, ItemStack arg1)
method_8220(class_1890$class_1891 arg0, class_1799 arg1)
m_mnatputa(C_jakrppis$C_jdhxivxn arg0, C_sddaxwyk arg1)
forEachEnchantment(EnchantmentHelper$Consumer consumer, ItemStack stack)
forEachEnchantment(EnchantmentHelper$Consumer consumer, ItemStack stack)
m_44850_(C_1522_$C_1523_ p_44851_, C_1391_ p_44852_)
private static void
a(dac$a arg0, Iterable<cuq> arg1)
runIterationOnInventory(EnchantmentHelper$EnchantmentVisitor arg0, Iterable<ItemStack> arg1)
method_8209(class_1890$class_1891 arg0, Iterable<class_1799> arg1)
m_jewispmg(C_jakrppis$C_jdhxivxn arg0, Iterable<C_sddaxwyk> arg1)
forEachEnchantment(EnchantmentHelper$Consumer consumer, Iterable<ItemStack> stacks)
forEachEnchantment(EnchantmentHelper$Consumer consumer, Iterable<ItemStack> stacks)
m_44853_(C_1522_$C_1523_ p_44854_, Iterable<C_1391_> p_44855_)
public static int
a(Iterable<cuq> arg0, bro arg1)
getDamageProtection(Iterable<ItemStack> arg0, DamageSource arg1)
method_8219(Iterable<class_1799> arg0, class_1282 arg1)
m_jfbiswcz(Iterable<C_sddaxwyk> arg0, C_sbxfkpyv arg1)
getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source)
getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source)
m_44856_(Iterable<C_1391_> p_44857_, C_489_ p_44858_)
public static float
a(cuq arg0, btb<?> arg1)
getDamageBonus(ItemStack arg0, EntityType<?> arg1)
method_8218(class_1799 arg0, class_1299<?> arg1)
m_pdpzdulw(C_sddaxwyk arg0, C_ogavsvbr<?> arg1)
getAttackDamage(ItemStack stack, EntityType<?> entityType)
getAttackDamage(ItemStack stack, EntityType<?> entity)
m_44833_(C_1391_ p_44834_, C_513_<?> p_331963_)
public static float
a(btq arg0)
getSweepingDamageRatio(LivingEntity arg0)
method_8217(class_1309 arg0)
m_cvzymgsw(C_usxaxydn arg0)
getSweepingMultiplier(LivingEntity entity)
m_cvzymgsw(LivingEntity entity)
m_44821_(C_524_ p_44822_)
public static float
a(bsv arg0, float arg1)
calculateArmorBreach(Entity arg0, float arg1)
method_58676(class_1297 arg0, float arg1)
m_mvsjkilb(C_astfners arg0, float arg1)
getBreachFactor(Entity entity, float arg1)
getArmorBreach(Entity arg0, float arg1)
m_318919_(C_507_ p_329003_, float p_334370_)
public static void
a(btq arg0, bsv arg1)
doPostHurtEffects(LivingEntity arg0, Entity arg1)
method_8210(class_1309 arg0, class_1297 arg1)
m_gfmalqgf(C_usxaxydn arg0, C_astfners arg1)
onUserDamaged(LivingEntity user, Entity attacker)
onUserDamaged(LivingEntity user, Entity attacker)
m_44823_(C_524_ p_44824_, C_507_ p_44825_)
public static void
b(btq arg0, bsv arg1)
doPostDamageEffects(LivingEntity arg0, Entity arg1)
method_8213(class_1309 arg0, class_1297 arg1)
m_ysxfxsjj(C_usxaxydn arg0, C_astfners arg1)
onTargetDamaged(LivingEntity user, Entity target)
onTargetDamaged(LivingEntity user, Entity target)
m_44896_(C_524_ p_44897_, C_507_ p_44898_)
public static void
a(btq arg0, bsv arg1, dag arg2)
doPostItemStackHurtEffects(LivingEntity arg0, Entity arg1, ItemEnchantments arg2)
method_58677(class_1309 arg0, class_1297 arg1, class_9304 arg2)
m_yhaevnqm(C_usxaxydn arg0, C_astfners arg1, C_qlclfxvn arg2)
onAttack(LivingEntity attacker, Entity target, ItemEnchantmentsComponent enchantments)
m_323486_(C_524_ p_330971_, C_507_ p_330890_, C_313873_ p_336148_)
public static int
a(dab arg0, btq arg1)
getEnchantmentLevel(Enchantment arg0, LivingEntity arg1)
method_8203(class_1887 arg0, class_1309 arg1)
m_wfidublc(C_jxtrubuh arg0, C_usxaxydn arg1)
getEquipmentLevel(Enchantment enchantment, LivingEntity entity)
getEnchantmentLevel(Enchantment enchantment, LivingEntity entity)
m_44836_(C_1505_ p_44837_, C_524_ p_44838_)
public static float
b(btq arg0)
getSneakingSpeedBonus(LivingEntity arg0)
method_42304(class_1309 arg0)
m_zmhvmqxg(C_usxaxydn arg0)
getSwiftSneakSpeedBoost(LivingEntity entity)
getSwiftSneak(LivingEntity entity)
m_220302_(C_524_ p_220303_)
public static int
c(btq arg0)
getKnockbackBonus(LivingEntity arg0)
method_8205(class_1309 arg0)
m_ktvqzwtx(C_usxaxydn arg0)
getKnockback(LivingEntity entity)
getKnockback(LivingEntity entity)
m_44894_(C_524_ p_44895_)
public static int
d(btq arg0)
getFireAspect(LivingEntity arg0)
method_8199(class_1309 arg0)
m_knenpeym(C_usxaxydn arg0)
getFireAspect(LivingEntity entity)
getFireAspect(LivingEntity entity)
m_44914_(C_524_ p_44915_)
public static int
e(btq arg0)
getRespiration(LivingEntity arg0)
method_8211(class_1309 arg0)
m_iaspatfp(C_usxaxydn arg0)
getRespiration(LivingEntity entity)
getRespiration(LivingEntity entity)
m_44918_(C_524_ p_44919_)
public static int
f(btq arg0)
getDepthStrider(LivingEntity arg0)
method_8232(class_1309 arg0)
m_txkgdgaa(C_usxaxydn arg0)
getDepthStrider(LivingEntity entity)
getDepthStrider(LivingEntity entity)
m_44922_(C_524_ p_44923_)
public static int
g(btq arg0)
getBlockEfficiency(LivingEntity arg0)
method_8234(class_1309 arg0)
m_qlkrewkt(C_usxaxydn arg0)
getEfficiency(LivingEntity entity)
getEfficiency(LivingEntity entity)
m_44926_(C_524_ p_44927_)
public static int
d(cuq arg0)
getFishingLuckBonus(ItemStack arg0)
method_8223(class_1799 arg0)
m_qhyhygvf(C_sddaxwyk arg0)
getLuckOfTheSea(ItemStack stack)
getLuckOfTheSea(ItemStack stack)
m_44904_(C_1391_ p_44905_)
public static int
e(cuq arg0)
getFishingSpeedBonus(ItemStack arg0)
method_8215(class_1799 arg0)
m_kfuscpev(C_sddaxwyk arg0)
getLure(ItemStack stack)
getLure(ItemStack stack)
m_44916_(C_1391_ p_44917_)
public static int
h(btq arg0)
getMobLooting(LivingEntity arg0)
method_8226(class_1309 arg0)
m_jfzsayrx(C_usxaxydn arg0)
getLooting(LivingEntity entity)
getLooting(LivingEntity entity)
m_44930_(C_524_ p_44931_)
public static boolean
i(btq arg0)
hasAquaAffinity(LivingEntity arg0)
method_8200(class_1309 arg0)
m_zpauplkq(C_usxaxydn arg0)
hasAquaAffinity(LivingEntity entity)
hasAquaAffinity(LivingEntity entity)
m_44934_(C_524_ p_44935_)
public static boolean
j(btq arg0)
hasFrostWalker(LivingEntity arg0)
method_8216(class_1309 arg0)
m_cwzufrfa(C_usxaxydn arg0)
hasFrostWalker(LivingEntity entity)
hasFrostWalker(LivingEntity entity)
m_44938_(C_524_ p_44939_)
public static boolean
k(btq arg0)
hasSoulSpeed(LivingEntity arg0)
method_25951(class_1309 arg0)
m_vonozfhq(C_usxaxydn arg0)
hasSoulSpeed(LivingEntity entity)
hasSoulSpeed(LivingEntity entity)
m_44942_(C_524_ p_44943_)
public static boolean
f(cuq arg0)
hasBindingCurse(ItemStack arg0)
method_8224(class_1799 arg0)
m_nmfzbmmv(C_sddaxwyk arg0)
hasBindingCurse(ItemStack stack)
hasBindingCurse(ItemStack stack)
m_44920_(C_1391_ p_44921_)
public static boolean
g(cuq arg0)
hasVanishingCurse(ItemStack arg0)
method_8221(class_1799 arg0)
m_kkmhqorr(C_sddaxwyk arg0)
hasVanishingCurse(ItemStack stack)
hasVanishingCurse(ItemStack stack)
m_44924_(C_1391_ p_44925_)
public static boolean
h(cuq arg0)
hasSilkTouch(ItemStack arg0)
method_49189(class_1799 arg0)
m_leiaofyl(C_sddaxwyk arg0)
hasSilkTouch(ItemStack stack)
hasSilkTouch(ItemStack stack)
m_272262_(C_1391_ p_273444_)
public static int
i(cuq arg0)
getLoyalty(ItemStack arg0)
method_8206(class_1799 arg0)
m_ebcyaldp(C_sddaxwyk arg0)
getLoyalty(ItemStack stack)
getLoyalty(ItemStack stack)
m_44928_(C_1391_ p_44929_)
public static int
j(cuq arg0)
getRiptide(ItemStack arg0)
method_8202(class_1799 arg0)
m_ogntvpbr(C_sddaxwyk arg0)
getRiptide(ItemStack stack)
getRiptide(ItemStack stack)
m_44932_(C_1391_ p_44933_)
public static boolean
k(cuq arg0)
hasChanneling(ItemStack arg0)
method_8228(class_1799 arg0)
m_aeqkynka(C_sddaxwyk arg0)
hasChanneling(ItemStack stack)
hasChanneling(ItemStack stack)
m_44936_(C_1391_ p_44937_)
public static Map$Entry<EquipmentSlot, ItemStack>
b(dab arg0, btq arg1)
getRandomItemWith(Enchantment arg0, LivingEntity arg1)
method_8204(class_1887 arg0, class_1309 arg1)
m_ymaphuvh(C_jxtrubuh arg0, C_usxaxydn arg1)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)
m_44906_(C_1505_ p_44907_, C_524_ p_44908_)
public static Map$Entry<EquipmentSlot, ItemStack>
a(dab arg0, btq arg1, Predicate<cuq> arg2)
getRandomItemWith(Enchantment arg0, LivingEntity arg1, Predicate<ItemStack> arg2)
method_24365(class_1887 arg0, class_1309 arg1, Predicate<class_1799> arg2)
m_mieewhwi(C_jxtrubuh arg0, C_usxaxydn arg1, Predicate<C_sddaxwyk> arg2)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
m_44839_(C_1505_ p_44840_, C_524_ p_44841_, Predicate<C_1391_> p_44842_)
public static int
a(azh arg0, int arg1, int arg2, cuq arg3)
getEnchantmentCost(RandomSource arg0, int arg1, int arg2, ItemStack arg3)
method_8227(class_5819 arg0, int arg1, int arg2, class_1799 arg3)
m_pcunrpng(C_rlomrsco arg0, int arg1, int arg2, C_sddaxwyk arg3)
calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)
calculateRequiredExperienceLevel(RandomGenerator random, int slotIndex, int bookshelfCount, ItemStack stack)
m_220287_(C_212974_ p_220288_, int p_220289_, int p_220290_, C_1391_ p_220291_)
public static ItemStack
a(cpm arg0, azh arg1, cuq arg2, int arg3, boolean arg4)
enchantItem(FeatureFlagSet arg0, RandomSource arg1, ItemStack arg2, int arg3, boolean arg4)
method_8233(class_7699 arg0, class_5819 arg1, class_1799 arg2, int arg3, boolean arg4)
m_naelqumb(C_czxxrbcp arg0, C_rlomrsco arg1, C_sddaxwyk arg2, int arg3, boolean arg4)
enchant(FeatureSet enabledFeatures, Random random, ItemStack stack, int level, boolean treasureAllowed)
enchant(FeatureFlagBitSet arg0, RandomGenerator random, ItemStack target, int level, boolean treasureAllowed)
m_220292_(C_243488_ p_329514_, C_212974_ p_220293_, C_1391_ p_220294_, int p_220295_, boolean p_220296_)
public static List<EnchantmentInstance>
b(cpm arg0, azh arg1, cuq arg2, int arg3, boolean arg4)
selectEnchantment(FeatureFlagSet arg0, RandomSource arg1, ItemStack arg2, int arg3, boolean arg4)
method_8230(class_7699 arg0, class_5819 arg1, class_1799 arg2, int arg3, boolean arg4)
m_udfcqeza(C_czxxrbcp arg0, C_rlomrsco arg1, C_sddaxwyk arg2, int arg3, boolean arg4)
generateEnchantments(FeatureSet enabledFeatures, Random random, ItemStack stack, int level, boolean treasureAllowed)
generateEnchantments(FeatureFlagBitSet arg0, RandomGenerator random, ItemStack stack, int level, boolean treasureAllowed)
m_220297_(C_243488_ p_329284_, C_212974_ p_220298_, C_1391_ p_220299_, int p_220300_, boolean p_220301_)
public static void
a(List<dad> arg0, dad arg1)
filterCompatibleEnchantments(List<EnchantmentInstance> arg0, EnchantmentInstance arg1)
method_8231(List<class_1889> arg0, class_1889 arg1)
m_pdlnvjwf(List<C_gsnkkurc> arg0, C_gsnkkurc arg1)
removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry)
removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry)
m_44862_(List<C_1524_> p_44863_, C_1524_ p_44864_)
public static boolean
a(Collection<ji<dab>> arg0, dab arg1)
isEnchantmentCompatible(Collection<Holder<Enchantment>> arg0, Enchantment arg1)
method_8201(Collection<class_6880<class_1887>> arg0, class_1887 arg1)
m_ecxgwxiu(Collection<C_cjzoxshv<C_jxtrubuh>> arg0, C_jxtrubuh arg1)
isCompatible(Collection<RegistryEntry<Enchantment>> existing, Enchantment candidate)
isCompatible(Collection<Holder<Enchantment>> existing, Enchantment candidate)
m_44859_(Collection<C_203228_<C_1505_>> p_44860_, C_1505_ p_44861_)
public static List<EnchantmentInstance>
a(cpm arg0, int arg1, cuq arg2, boolean arg3)
getAvailableEnchantmentResults(FeatureFlagSet arg0, int arg1, ItemStack arg2, boolean arg3)
method_8229(class_7699 arg0, int arg1, class_1799 arg2, boolean arg3)
m_pngonrhw(C_czxxrbcp arg0, int arg1, C_sddaxwyk arg2, boolean arg3)
getPossibleEntries(FeatureSet enabledFeatures, int level, ItemStack stack, boolean treasureAllowed)
getPossibleEntries(FeatureFlagBitSet arg0, int power, ItemStack stack, boolean treasureAllowed)
m_44817_(C_243488_ p_334102_, int p_44818_, C_1391_ p_44819_, boolean p_44820_)