    001    package net.minecraft.src;
    002
    003    public class EnchantmentUntouching extends Enchantment
    004    {
    005        protected EnchantmentUntouching(int par1, int par2)
    006        {
    007            super(par1, par2, EnumEnchantmentType.digger);
    008            this.setName("untouching");
    009        }
    010
    011        /**
    012         * Returns the minimal value of enchantability needed on the enchantment level passed.
    013         */
    014        public int getMinEnchantability(int par1)
    015        {
    016            return 15;
    017        }
    018
    019        /**
    020         * Returns the maximum value of enchantability nedded on the enchantment level passed.
    021         */
    022        public int getMaxEnchantability(int par1)
    023        {
    024            return super.getMinEnchantability(par1) + 50;
    025        }
    026
    027        /**
    028         * Returns the maximum level that the enchantment can have.
    029         */
    030        public int getMaxLevel()
    031        {
    032            return 1;
    033        }
    034
    035        /**
    036         * Determines if the enchantment passed can be applyied together with this enchantment.
    037         */
    038        public boolean canApplyTogether(Enchantment par1Enchantment)
    039        {
    040            return super.canApplyTogether(par1Enchantment) && par1Enchantment.effectId != fortune.effectId;
    041        }
    042    }