net.minecraft.world.item.enchantment

public class EnchantmentHelper

bpu
net.minecraft.world.item.enchantment.EnchantmentHelper
net.minecraft.class_1890
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.server.v1_16_R3.EnchantmentManager

Method summary

Modifier and TypeMethod
public static int
a(bps arg0, bmb arg1)
getItemEnchantmentLevel(Enchantment arg0, ItemStack arg1)
method_8225(class_1887 arg0, class_1799 arg1)
getLevel(Enchantment enchantment, ItemStack stack)
func_77506_a(Enchantment arg0, ItemStack arg1)
getEnchantmentLevel(Enchantment arg0, ItemStack arg1)
public static Map<Enchantment, Integer>
a(bmb arg0)
getEnchantments(ItemStack arg0)
method_8222(class_1799 arg0)
get(ItemStack stack)
func_82781_a(ItemStack arg0)
public static Map<Enchantment, Integer>
a(mj arg0)
deserializeEnchantments(ListTag arg0)
method_22445(class_2499 arg0)
fromNbt(NbtList list)
func_226652_a_(ListNBT arg0)
public static void
a(Map<bps, Integer> arg0, bmb arg1)
setEnchantments(Map<Enchantment, Integer> arg0, ItemStack arg1)
method_8214(Map<class_1887, Integer> arg0, class_1799 arg1)
set(Map<Enchantment, Integer> enchantments, ItemStack stack)
func_82782_a(Map<Enchantment, Integer> arg0, ItemStack arg1)
private static void
a(bpu$a arg0, bmb arg1)
runIterationOnItem(EnchantmentHelper$EnchantmentVisitor arg0, ItemStack arg1)
method_8220(class_1890$class_1891 arg0, class_1799 arg1)
forEachEnchantment(EnchantmentHelper$Consumer consumer, ItemStack stack)
func_77518_a(EnchantmentHelper$IEnchantmentVisitor arg0, ItemStack arg1)
private static void
a(bpu$a arg0, Iterable<bmb> arg1)
runIterationOnInventory(EnchantmentHelper$EnchantmentVisitor arg0, Iterable<ItemStack> arg1)
method_8209(class_1890$class_1891 arg0, Iterable<class_1799> arg1)
forEachEnchantment(EnchantmentHelper$Consumer consumer, Iterable<ItemStack> stacks)
func_77516_a(EnchantmentHelper$IEnchantmentVisitor arg0, Iterable<ItemStack> arg1)
public static int
a(Iterable<bmb> arg0, apk arg1)
getDamageProtection(Iterable<ItemStack> arg0, DamageSource arg1)
method_8219(Iterable<class_1799> arg0, class_1282 arg1)
getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source)
func_77508_a(Iterable<ItemStack> arg0, DamageSource arg1)
public static float
a(bmb arg0, aqq arg1)
getDamageBonus(ItemStack arg0, MobType arg1)
method_8218(class_1799 arg0, class_1310 arg1)
getAttackDamage(ItemStack stack, EntityGroup group)
func_152377_a(ItemStack arg0, CreatureAttribute arg1)
public static float
a(aqm arg0)
getSweepingDamageRatio(LivingEntity arg0)
method_8217(class_1309 arg0)
getSweepingMultiplier(LivingEntity entity)
func_191527_a(LivingEntity arg0)
public static void
a(aqm arg0, aqa arg1)
doPostHurtEffects(LivingEntity arg0, Entity arg1)
method_8210(class_1309 arg0, class_1297 arg1)
onUserDamaged(LivingEntity user, Entity attacker)
func_151384_a(LivingEntity arg0, Entity arg1)
public static void
b(aqm arg0, aqa arg1)
doPostDamageEffects(LivingEntity arg0, Entity arg1)
method_8213(class_1309 arg0, class_1297 arg1)
onTargetDamaged(LivingEntity user, Entity target)
func_151385_b(LivingEntity arg0, Entity arg1)
public static int
a(bps arg0, aqm arg1)
getEnchantmentLevel(Enchantment arg0, LivingEntity arg1)
method_8203(class_1887 arg0, class_1309 arg1)
getEquipmentLevel(Enchantment enchantment, LivingEntity entity)
func_185284_a(Enchantment arg0, LivingEntity arg1)
public static int
b(aqm arg0)
getKnockbackBonus(LivingEntity arg0)
method_8205(class_1309 arg0)
getKnockback(LivingEntity entity)
func_77501_a(LivingEntity arg0)
public static int
c(aqm arg0)
getFireAspect(LivingEntity arg0)
method_8199(class_1309 arg0)
getFireAspect(LivingEntity entity)
func_90036_a(LivingEntity arg0)
getFireAspectEnchantmentLevel(EntityLiving arg0)
public static int
d(aqm arg0)
getRespiration(LivingEntity arg0)
method_8211(class_1309 arg0)
getRespiration(LivingEntity entity)
func_185292_c(LivingEntity arg0)
getOxygenEnchantmentLevel(EntityLiving arg0)
public static int
e(aqm arg0)
getDepthStrider(LivingEntity arg0)
method_8232(class_1309 arg0)
getDepthStrider(LivingEntity entity)
func_185294_d(LivingEntity arg0)
public static int
f(aqm arg0)
getBlockEfficiency(LivingEntity arg0)
method_8234(class_1309 arg0)
getEfficiency(LivingEntity entity)
func_185293_e(LivingEntity arg0)
getDigSpeedEnchantmentLevel(EntityLiving arg0)
public static int
b(bmb arg0)
getFishingLuckBonus(ItemStack arg0)
method_8223(class_1799 arg0)
getLuckOfTheSea(ItemStack stack)
func_191529_b(ItemStack arg0)
public static int
c(bmb arg0)
getFishingSpeedBonus(ItemStack arg0)
method_8215(class_1799 arg0)
getLure(ItemStack stack)
func_191528_c(ItemStack arg0)
public static int
g(aqm arg0)
getMobLooting(LivingEntity arg0)
method_8226(class_1309 arg0)
getLooting(LivingEntity entity)
func_185283_h(LivingEntity arg0)
public static boolean
h(aqm arg0)
hasAquaAffinity(LivingEntity arg0)
method_8200(class_1309 arg0)
hasAquaAffinity(LivingEntity entity)
func_185287_i(LivingEntity arg0)
public static boolean
i(aqm arg0)
hasFrostWalker(LivingEntity arg0)
method_8216(class_1309 arg0)
hasFrostWalker(LivingEntity entity)
func_189869_j(LivingEntity arg0)
public static boolean
j(aqm arg0)
hasSoulSpeed(LivingEntity arg0)
method_25951(class_1309 arg0)
hasSoulSpeed(LivingEntity entity)
func_234846_j_(LivingEntity arg0)
public static boolean
d(bmb arg0)
hasBindingCurse(ItemStack arg0)
method_8224(class_1799 arg0)
hasBindingCurse(ItemStack stack)
func_190938_b(ItemStack arg0)
public static boolean
e(bmb arg0)
hasVanishingCurse(ItemStack arg0)
method_8221(class_1799 arg0)
hasVanishingCurse(ItemStack stack)
func_190939_c(ItemStack arg0)
shouldNotDrop(ItemStack arg0)
public static int
f(bmb arg0)
getLoyalty(ItemStack arg0)
method_8206(class_1799 arg0)
getLoyalty(ItemStack stack)
func_203191_f(ItemStack arg0)
public static int
g(bmb arg0)
getRiptide(ItemStack arg0)
method_8202(class_1799 arg0)
getRiptide(ItemStack stack)
func_203190_g(ItemStack arg0)
public static boolean
h(bmb arg0)
hasChanneling(ItemStack arg0)
method_8228(class_1799 arg0)
hasChanneling(ItemStack stack)
func_203192_h(ItemStack arg0)
public static Map$Entry<EquipmentSlot, ItemStack>
b(bps arg0, aqm arg1)
getRandomItemWith(Enchantment arg0, LivingEntity arg1)
method_8204(class_1887 arg0, class_1309 arg1)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)
func_222189_b(Enchantment arg0, LivingEntity arg1)
public static Map$Entry<EquipmentSlot, ItemStack>
a(bps arg0, aqm arg1, Predicate<bmb> arg2)
getRandomItemWith(Enchantment arg0, LivingEntity arg1, Predicate<ItemStack> arg2)
method_24365(class_1887 arg0, class_1309 arg1, Predicate<class_1799> arg2)
chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
func_234844_a_(Enchantment arg0, LivingEntity arg1, Predicate<ItemStack> arg2)
public static int
a(Random arg0, int arg1, int arg2, bmb arg3)
getEnchantmentCost(Random arg0, int arg1, int arg2, ItemStack arg3)
method_8227(Random arg0, int arg1, int arg2, class_1799 arg3)
calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)
func_77514_a(Random arg0, int arg1, int arg2, ItemStack arg3)
public static ItemStack
a(Random arg0, bmb arg1, int arg2, boolean arg3)
enchantItem(Random arg0, ItemStack arg1, int arg2, boolean arg3)
method_8233(Random arg0, class_1799 arg1, int arg2, boolean arg3)
enchant(Random random, ItemStack target, int level, boolean treasureAllowed)
func_77504_a(Random arg0, ItemStack arg1, int arg2, boolean arg3)
public static List<EnchantmentInstance>
b(Random arg0, bmb arg1, int arg2, boolean arg3)
selectEnchantment(Random arg0, ItemStack arg1, int arg2, boolean arg3)
method_8230(Random arg0, class_1799 arg1, int arg2, boolean arg3)
generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed)
func_77513_b(Random arg0, ItemStack arg1, int arg2, boolean arg3)
public static void
a(List<bpv> arg0, bpv arg1)
filterCompatibleEnchantments(List<EnchantmentInstance> arg0, EnchantmentInstance arg1)
method_8231(List<class_1889> arg0, class_1889 arg1)
removeConflicts(List<EnchantmentLevelEntry> possibleEntries, EnchantmentLevelEntry pickedEntry)
func_185282_a(List<EnchantmentData> arg0, EnchantmentData arg1)
public static boolean
a(Collection<bps> arg0, bps arg1)
isEnchantmentCompatible(Collection<Enchantment> arg0, Enchantment arg1)
method_8201(Collection<class_1887> arg0, class_1887 arg1)
isCompatible(Collection<Enchantment> existing, Enchantment candidate)
func_201840_a(Collection<Enchantment> arg0, Enchantment arg1)
public static List<EnchantmentInstance>
a(int arg0, bmb arg1, boolean arg2)
getAvailableEnchantmentResults(int arg0, ItemStack arg1, boolean arg2)
method_8229(int arg0, class_1799 arg1, boolean arg2)
getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed)
func_185291_a(int arg0, ItemStack arg1, boolean arg2)