Class net.minecraft.enchantment.EnchantmentHelper

This description should be content pulled from the first comments of a lua file.

Static Methods

EnchantmentHelper.calculateRequiredExperienceLevel(random, slotIndex, bookshelfCount, stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.chooseEquipmentWith(enchantment, entity, condition) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.chooseEquipmentWith(enchantment, entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.createNbt(id, lvl) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.enchant(random, target, level, treasureAllowed) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.fromNbt(list) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.generateEnchantments(random, stack, level, treasureAllowed) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.get(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getAttackDamage(stack, group) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getDepthStrider(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getEfficiency(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getEnchantmentId(enchantment) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getEquipmentLevel(enchantment, entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getFireAspect(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getIdFromNbt(nbt) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getKnockback(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLevel(enchantment, stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLevelFromNbt(nbt) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLooting(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLoyalty(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLuckOfTheSea(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getLure(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getPossibleEntries(power, stack, treasureAllowed) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getProtectionAmount(equipment, source) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getRespiration(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getRiptide(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.getSweepingMultiplier(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasAquaAffinity(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasBindingCurse(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasChanneling(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasFrostWalker(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasSoulSpeed(entity) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.hasVanishingCurse(stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.isCompatible(existing, candidate) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.onTargetDamaged(user, target) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.onUserDamaged(user, attacker) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.removeConflicts(possibleEntries, pickedEntry) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.set(enchantments, stack) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
EnchantmentHelper.writeLevelToNbt(nbt, lvl) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Constructors

EnchantmentHelper() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Instance Methods

instance:equals(arg0) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:getClass() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:hashCode() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:notify() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:notifyAll() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:toString() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:wait() This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:wait(arg0) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:wait(arg0, arg1) This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"


Static Methods

EnchantmentHelper.calculateRequiredExperienceLevel(random, slotIndex, bookshelfCount, stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • random userdata, Random This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • slotIndex int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • bookshelfCount int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.chooseEquipmentWith(enchantment, entity, condition)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantment userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • condition userdata, Predicate This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Entry This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.chooseEquipmentWith(enchantment, entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantment userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Entry This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.createNbt(id, lvl)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • id userdata, Identifier This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • lvl int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, NbtCompound This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.enchant(random, target, level, treasureAllowed)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • random userdata, Random This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • target userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • level int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • treasureAllowed boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.fromNbt(list)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • list userdata, NbtList This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Map This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.generateEnchantments(random, stack, level, treasureAllowed)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • random userdata, Random This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • level int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • treasureAllowed boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, List This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.get(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Map This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getAttackDamage(stack, group)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • group userdata, EntityGroup This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

number, float This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getDepthStrider(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getEfficiency(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getEnchantmentId(enchantment)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantment userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Identifier This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getEquipmentLevel(enchantment, entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantment userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getFireAspect(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getIdFromNbt(nbt)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • nbt userdata, NbtCompound This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, Identifier This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getKnockback(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLevel(enchantment, stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantment userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLevelFromNbt(nbt)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • nbt userdata, NbtCompound This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLooting(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLoyalty(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLuckOfTheSea(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getLure(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getPossibleEntries(power, stack, treasureAllowed)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • power int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • treasureAllowed boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

userdata, List This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getProtectionAmount(equipment, source)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • equipment userdata, Iterable This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • source userdata, DamageSource This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getRespiration(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getRiptide(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.getSweepingMultiplier(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

number, float This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasAquaAffinity(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasBindingCurse(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasChanneling(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasFrostWalker(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasSoulSpeed(entity)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • entity userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.hasVanishingCurse(stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.isCompatible(existing, candidate)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • existing userdata, Collection This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • candidate userdata, Enchantment This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
EnchantmentHelper.onTargetDamaged(user, target)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • user userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • target userdata, Entity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
EnchantmentHelper.onUserDamaged(user, attacker)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • user userdata, LivingEntity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • attacker userdata, Entity This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
EnchantmentHelper.removeConflicts(possibleEntries, pickedEntry)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • possibleEntries userdata, List This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • pickedEntry userdata, EnchantmentLevelEntry This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
EnchantmentHelper.set(enchantments, stack)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • enchantments userdata, Map This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • stack userdata, ItemStack This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
EnchantmentHelper.writeLevelToNbt(nbt, lvl)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • nbt userdata, NbtCompound This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • lvl int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Constructors

EnchantmentHelper()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Instance Methods

instance:equals(arg0)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • arg0 userdata, Object This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"

Returns:

boolean This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
instance:getClass()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Returns:

userdata, Class This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
instance:hashCode()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Returns:

int This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
instance:notify()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:notifyAll()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:toString()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Returns:

string This description should be content pulled from the comments above a method in a lua file. Format: "-- @return DESCRIPTION"
instance:wait()
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"
instance:wait(arg0)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • arg0 int, long This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
instance:wait(arg0, arg1)
This description should be content pulled from the comments above a method in a lua file. Format: "--- @method m_id DESCRIPTION"

Parameters:

  • arg0 int, long This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"
  • arg1 int This description should be content pulled from the comments above a method in a lua file. Format: "-- @param varName DESCRIPTION"