Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraft.src
Class EnchantmentHelper

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

    public class EnchantmentHelper

extends Object

Constructor Summary
`EnchantmentHelper()`

Method Summary
`static ItemStack` | `addRandomEnchantment(Random par0Random, ItemStack par1ItemStack, int par2)` Adds a random enchantment to the specified item.
`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.
`static int` | `calcItemStackEnchantability(Random par0Random, int par1, int par2, ItemStack par3ItemStack)` Returns the enchantability of itemstack, it's uses a singular formula for each index (2nd parameter: 0, 1 and 2), cutting to the max enchantability power of the table (3rd parameter)
`static int` | `func_90036_a(EntityLiving par0EntityLiving)`
`static boolean` | `getAquaAffinityModifier(EntityLiving par0EntityLiving)` Returns the aqua affinity status of enchantments on current equipped item of player.
`static int` | `getEfficiencyModifier(EntityLiving par0EntityLiving)` Return the extra efficiency of tools based on enchantments on equipped player item.
`static int` | `getEnchantmentLevel(int par0, ItemStack par1ItemStack)` Returns the level of enchantment on the ItemStack passed.
`static int` | `getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack, DamageSource par1DamageSource)` Returns the modifier of protection enchantments on armors equipped on player.
`static int` | `getEnchantmentModifierLiving(EntityLiving par0EntityLiving, EntityLiving par1EntityLiving)` Return the (magic) extra damage of the enchantments on player equipped item.
`static Map` | `getEnchantments(ItemStack par0ItemStack)` Return the enchantments for the specified stack.
`static int` | `getFortuneModifier(EntityLiving par0EntityLiving)` Returns the fortune enchantment modifier of the current equipped item of player.
`static int` | `getKnockbackModifier(EntityLiving par0EntityLiving, EntityLiving par1EntityLiving)` Returns the knockback value of enchantments on equipped player item.
`static int` | `getLootingModifier(EntityLiving par0EntityLiving)` Returns the looting enchantment modifier of the current equipped item of player.
`static int` | `getRespiration(EntityLiving par0EntityLiving)` Returns the 'Water Breathing' modifier of enchantments on player equipped armors.
`static boolean` | `getSilkTouchModifier(EntityLiving par0EntityLiving)` Returns the silk touch status of enchantments on current equipped item of player.
`static int` | `getUnbreakingModifier(EntityLiving par0EntityLiving)` Returns the unbreaking enchantment modifier on current equipped item of player.
`static Map` | `mapEnchantmentData(int par0, ItemStack par1ItemStack)` Creates a 'Map' of EnchantmentData (enchantments) possible to add on the ItemStack and the enchantability level passed.
`static void` | `setEnchantments(Map par0Map, ItemStack par1ItemStack)` Set the enchantments for the specified stack.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### EnchantmentHelper

    public EnchantmentHelper()

Method Detail

### 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.

### getEnchantmentModifierDamage

    public static int getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack,
                                                   DamageSource par1DamageSource)

  Returns the modifier of protection enchantments on armors equipped on player.

### getEnchantmentModifierLiving

    public static int getEnchantmentModifierLiving(EntityLiving par0EntityLiving,
                                                   EntityLiving par1EntityLiving)

  Return the (magic) extra damage of the enchantments on player equipped item.

### getKnockbackModifier

    public static int getKnockbackModifier(EntityLiving par0EntityLiving,
                                           EntityLiving par1EntityLiving)

  Returns the knockback value of enchantments on equipped player item.

### func_90036_a

    public static int func_90036_a(EntityLiving par0EntityLiving)

### getRespiration

    public static int getRespiration(EntityLiving par0EntityLiving)

  Returns the 'Water Breathing' modifier of enchantments on player equipped armors.

### getEfficiencyModifier

    public static int getEfficiencyModifier(EntityLiving par0EntityLiving)

  Return the extra efficiency of tools based on enchantments on equipped player item.

### getUnbreakingModifier

    public static int getUnbreakingModifier(EntityLiving par0EntityLiving)

  Returns the unbreaking enchantment modifier on current equipped item of player.

### getSilkTouchModifier

    public static boolean getSilkTouchModifier(EntityLiving par0EntityLiving)

  Returns the silk touch status of enchantments on current equipped item of player.

### getFortuneModifier

    public static int getFortuneModifier(EntityLiving par0EntityLiving)

  Returns the fortune enchantment modifier of the current equipped item of player.

### getLootingModifier

    public static int getLootingModifier(EntityLiving par0EntityLiving)

  Returns the looting enchantment modifier of the current equipped item of player.

### getAquaAffinityModifier

    public static boolean getAquaAffinityModifier(EntityLiving par0EntityLiving)

  Returns the aqua affinity status of enchantments on current equipped item of player.

### calcItemStackEnchantability

    public static int calcItemStackEnchantability(Random par0Random,
                                                  int par1,
                                                  int par2,
                                                  ItemStack par3ItemStack)

  Returns the enchantability of itemstack, it's uses a singular formula for each index (2nd parameter: 0, 1 and 2), cutting to the max enchantability power of the table (3rd parameter)

### addRandomEnchantment

    public static ItemStack addRandomEnchantment(Random par0Random,
                                                 ItemStack par1ItemStack,
                                                 int par2)

  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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD