net.minecraft.enchantment

## Class EnchantmentData

- java.lang.Object
- - net.minecraft.util.WeightedRandomItem
  - - net.minecraft.enchantment.EnchantmentData

-     public class EnchantmentData
      extends WeightedRandomItem

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `int` | `enchantmentLevel` Enchantment level associated with this EnchantmentData
    `Enchantment` | `enchantmentobj` Enchantment object associated with this EnchantmentData

    - ### Fields inherited from class net.minecraft.util.WeightedRandomItem

      `itemWeight`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnchantmentData(Enchantment par1Enchantment, int par2)`
    `EnchantmentData(int par1, int par2)`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### enchantmentobj

          public final Enchantment enchantmentobj

      Enchantment object associated with this EnchantmentData

    - #### enchantmentLevel

          public final int enchantmentLevel

      Enchantment level associated with this EnchantmentData

  - ### Constructor Detail

    - #### EnchantmentData

          public EnchantmentData(Enchantment par1Enchantment,
                         int par2)

    - #### EnchantmentData

          public EnchantmentData(int par1,
                         int par2)