net.minecraft.world.item.enchantment

public class EnchantmentHelper

bpr
net.minecraft.world.item.enchantment.EnchantmentHelper
net.minecraft.class_1890
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.enchantment.EnchantmentHelper
net.minecraft.server.v1_16_R2.EnchantmentManager

Method summary

Modifier and TypeMethod
public static int
a(bpp arg0, bly 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(bly 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)
fromTag(ListTag tag)
func_226652_a_(ListNBT arg0)
public static void
a(Map<bpp, Integer> arg0, bly 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(bpr$a arg0, bly 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(bpr$a arg0, Iterable<bly> 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<bly> arg0, aph 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(bly arg0, aqn 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(aqj arg0)
getSweepingDamageRatio(LivingEntity arg0)
method_8217(class_1309 arg0)
getSweepingMultiplier(LivingEntity entity)
func_191527_a(LivingEntity arg0)
public static void
a(aqj arg0, apx 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(aqj arg0, apx 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(bpp arg0, aqj 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(aqj arg0)
getKnockbackBonus(LivingEntity arg0)
method_8205(class_1309 arg0)
getKnockback(LivingEntity entity)
func_77501_a(LivingEntity arg0)
public static int
c(aqj arg0)
getFireAspect(LivingEntity arg0)
method_8199(class_1309 arg0)
getFireAspect(LivingEntity entity)
func_90036_a(LivingEntity arg0)
getFireAspectEnchantmentLevel(EntityLiving arg0)
public static int
d(aqj arg0)
getRespiration(LivingEntity arg0)
method_8211(class_1309 arg0)
getRespiration(LivingEntity entity)
func_185292_c(LivingEntity arg0)
getOxygenEnchantmentLevel(EntityLiving arg0)
public static int
e(aqj arg0)
getDepthStrider(LivingEntity arg0)
method_8232(class_1309 arg0)
getDepthStrider(LivingEntity entity)
func_185294_d(LivingEntity arg0)
public static int
f(aqj arg0)
getBlockEfficiency(LivingEntity arg0)
method_8234(class_1309 arg0)
getEfficiency(LivingEntity entity)
func_185293_e(LivingEntity arg0)
getDigSpeedEnchantmentLevel(EntityLiving arg0)
public static int
b(bly arg0)
getFishingLuckBonus(ItemStack arg0)
method_8223(class_1799 arg0)
getLuckOfTheSea(ItemStack stack)
func_191529_b(ItemStack arg0)
public static int
c(bly arg0)
getFishingSpeedBonus(ItemStack arg0)
method_8215(class_1799 arg0)
getLure(ItemStack stack)
func_191528_c(ItemStack arg0)
public static int
g(aqj arg0)
getMobLooting(LivingEntity arg0)
method_8226(class_1309 arg0)
getLooting(LivingEntity entity)
func_185283_h(LivingEntity arg0)
public static boolean
h(aqj arg0)
hasAquaAffinity(LivingEntity arg0)
method_8200(class_1309 arg0)
hasAquaAffinity(LivingEntity entity)
func_185287_i(LivingEntity arg0)
public static boolean
i(aqj arg0)
hasFrostWalker(LivingEntity arg0)
method_8216(class_1309 arg0)
hasFrostWalker(LivingEntity entity)
func_189869_j(LivingEntity arg0)
public static boolean
j(aqj arg0)
hasSoulSpeed(LivingEntity arg0)
method_25951(class_1309 arg0)
hasSoulSpeed(LivingEntity entity)
func_234846_j_(LivingEntity arg0)
public static boolean
d(bly arg0)
hasBindingCurse(ItemStack arg0)
method_8224(class_1799 arg0)
hasBindingCurse(ItemStack stack)
func_190938_b(ItemStack arg0)
public static boolean
e(bly arg0)
hasVanishingCurse(ItemStack arg0)
method_8221(class_1799 arg0)
hasVanishingCurse(ItemStack stack)
func_190939_c(ItemStack arg0)
shouldNotDrop(ItemStack arg0)
public static int
f(bly arg0)
getLoyalty(ItemStack arg0)
method_8206(class_1799 arg0)
getLoyalty(ItemStack stack)
func_203191_f(ItemStack arg0)
public static int
g(bly arg0)
getRiptide(ItemStack arg0)
method_8202(class_1799 arg0)
getRiptide(ItemStack stack)
func_203190_g(ItemStack arg0)
public static boolean
h(bly arg0)
hasChanneling(ItemStack arg0)
method_8228(class_1799 arg0)
hasChanneling(ItemStack stack)
func_203192_h(ItemStack arg0)
public static Map$Entry<EquipmentSlot, ItemStack>
b(bpp arg0, aqj 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(bpp arg0, aqj arg1, Predicate<bly> 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, bly 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, bly 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, bly 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<bps> arg0, bps 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<bpp> arg0, bpp 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, bly 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)