    001    package net.minecraft.src;
    002
    003    public class EnchantmentData extends WeightedRandomItem
    004    {
    005        /** Enchantment object associated with this EnchantmentData */
    006        public final Enchantment enchantmentobj;
    007
    008        /** Enchantment level associated with this EnchantmentData */
    009        public final int enchantmentLevel;
    010
    011        public EnchantmentData(Enchantment par1Enchantment, int par2)
    012        {
    013            super(par1Enchantment.getWeight());
    014            this.enchantmentobj = par1Enchantment;
    015            this.enchantmentLevel = par2;
    016        }
    017    }