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