    001    package net.minecraft.item;
    002
    003    import net.minecraft.block.Block;
    004    import net.minecraft.block.material.Material;
    005
    006    public class ItemAxe extends ItemTool
    007    {
    008        /** an array of the blocks this axe is effective against */
    009        public static final Block[] blocksEffectiveAgainst = new Block[] {Block.planks, Block.bookShelf, Block.wood, Block.chest, Block.stoneDoubleSlab, Block.stoneSingleSlab, Block.pumpkin, Block.pumpkinLantern};
    010
    011        public ItemAxe(int par1, EnumToolMaterial par2EnumToolMaterial)
    012        {
    013            super(par1, 3, par2EnumToolMaterial, blocksEffectiveAgainst);
    014        }
    015
    016        /**
    017         * Returns the strength of the stack against a given block. 1.0F base, (Quality+1)*2 if correct blocktype, 1.5F if
    018         * sword
    019         */
    020        public float getStrVsBlock(ItemStack par1ItemStack, Block par2Block)
    021        {
    022            return par2Block != null && (par2Block.blockMaterial == Material.wood || par2Block.blockMaterial == Material.plants || par2Block.blockMaterial == Material.vine) ? this.efficiencyOnProperMaterial : super.getStrVsBlock(par1ItemStack, par2Block);
    023        }
    024    }