Class EnchantmentHelper

java.lang.Object
net.minecraft.src.EnchantmentHelper

public class EnchantmentHelper extends Object
  • Constructor Details

    • EnchantmentHelper

      public EnchantmentHelper()
  • Method Details

    • getEnchantmentLevel

      public static int getEnchantmentLevel(int par0, ItemStack par1ItemStack)
      Returns the level of enchantment on the ItemStack passed.
    • getEnchantments

      public static Map getEnchantments(ItemStack par0ItemStack)
      Return the enchantments for the specified stack.
    • setEnchantments

      public static void setEnchantments(Map par0Map, ItemStack par1ItemStack)
      Set the enchantments for the specified stack.
    • getMaxEnchantmentLevel

      public static int getMaxEnchantmentLevel(int par0, ItemStack[] par1ArrayOfItemStack)
      Returns the biggest level of the enchantment on the array of ItemStack passed.
    • getEnchantmentModifierDamage

      public static int getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack, DamageSource par1DamageSource)
      Returns the modifier of protection enchantments on armors equipped on player.
    • getEnchantmentModifierLiving

      public static float getEnchantmentModifierLiving(EntityLivingBase par0EntityLivingBase, EntityLivingBase par1EntityLivingBase)
      Return the (magic) extra damage of the enchantments on player equipped item.
    • getKnockbackModifier

      public static int getKnockbackModifier(EntityLivingBase par0EntityLivingBase, EntityLivingBase par1EntityLivingBase)
      Returns the knockback value of enchantments on equipped player item.
    • getFireAspectModifier

      public static int getFireAspectModifier(EntityLivingBase par0EntityLivingBase)
    • getRespiration

      public static int getRespiration(EntityLivingBase par0EntityLivingBase)
      Returns the 'Water Breathing' modifier of enchantments on player equipped armors.
    • getEfficiencyModifier

      public static int getEfficiencyModifier(EntityLivingBase par0EntityLivingBase)
      Return the extra efficiency of tools based on enchantments on equipped player item.
    • getSilkTouchModifier

      public static boolean getSilkTouchModifier(EntityLivingBase par0EntityLivingBase)
      Returns the silk touch status of enchantments on current equipped item of player.
    • getFortuneModifier

      public static int getFortuneModifier(EntityLivingBase par0EntityLivingBase)
      Returns the fortune enchantment modifier of the current equipped item of player.
    • getLootingModifier

      public static int getLootingModifier(EntityLivingBase par0EntityLivingBase)
      Returns the looting enchantment modifier of the current equipped item of player.
    • getAquaAffinityModifier

      public static boolean getAquaAffinityModifier(EntityLivingBase par0EntityLivingBase)
      Returns the aqua affinity status of enchantments on current equipped item of player.
    • func_92098_i

      public static int func_92098_i(EntityLivingBase par0EntityLivingBase)
    • func_92099_a

      public static ItemStack func_92099_a(Enchantment par0Enchantment, EntityLivingBase par1EntityLivingBase)
    • addRandomEnchantment

      public static ItemStack addRandomEnchantment(Random par0Random, ItemStack par1ItemStack, int par2)
      // +++START EDIT+++ // ---END EDIT--- Adds a random enchantment to the specified item. Args: random, itemStack, enchantabilityLevel
    • buildEnchantmentList

      public static List buildEnchantmentList(Random par0Random, ItemStack par1ItemStack, int par2)
      Create a list of random EnchantmentData (enchantments) that can be added together to the ItemStack, the 3rd parameter is the total enchantability level.
    • mapEnchantmentData

      public static Map mapEnchantmentData(int par0, ItemStack par1ItemStack)
      Creates a 'Map' of EnchantmentData (enchantments) possible to add on the ItemStack and the enchantability level passed.
    • calcItemStackEnchantability

      public static int calcItemStackEnchantability(Random rand, int iTableSlotNum, int iNumBookShelves, ItemStack stack)