001    package net.minecraft.item;
002    
003    import net.minecraft.block.Block;
004    
005    public class ItemSpade extends ItemTool
006    {
007        /** an array of the blocks this spade is effective against */
008        public static final Block[] blocksEffectiveAgainst = new Block[] {Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium};
009    
010        public ItemSpade(int par1, EnumToolMaterial par2EnumToolMaterial)
011        {
012            super(par1, 1, par2EnumToolMaterial, blocksEffectiveAgainst);
013        }
014    
015        /**
016         * Returns if the item (tool) can harvest results from the block type.
017         */
018        public boolean canHarvestBlock(Block par1Block)
019        {
020            return par1Block == Block.snow ? true : par1Block == Block.blockSnow;
021        }
022    }