/** Returns if the item (tool) can harvest results from the block type. */ @Override public boolean canHarvestBlock(Block par1Block, ItemStack par2ItemStack) { return par1Block == SoulBlocks.Baneberry.get() || par1Block == SoulBlocks.Blackberry.get() || par1Block == SoulBlocks.Blueberry.get() || par1Block == SoulBlocks.Cranberry.get() || par1Block == SoulBlocks.Raspberry.get() || par1Block == SoulBlocks.Razzberry.get() || par1Block == SoulBlocks.Strawberry.get() || par1Block == SoulBlocks.GrapesLeaves.get() || par1Block == SoulBlocks.SoulLeaves.get() || par1Block == SoulBlocks.HardwoodLeaves.get(); }
/** * Returns the strength of the stack against a given block. 1.0F base, (Quality+1)*2 if correct * blocktype, 1.5F if sword */ @Override public float getDigSpeed(ItemStack par1ItemStack, Block par2Block, int metadeta) { return par2Block != SoulBlocks.Baneberry.get() && par2Block != SoulBlocks.Blackberry.get() && par2Block != SoulBlocks.Blueberry.get() && par2Block != SoulBlocks.Cranberry.get() && par2Block != SoulBlocks.Raspberry.get() && par2Block != SoulBlocks.Razzberry.get() && par2Block != SoulBlocks.Strawberry.get() ? (par2Block == SoulBlocks.GrapesLeaves.get() || par2Block == SoulBlocks.SoulLeaves.get() || par2Block == SoulBlocks.HardwoodLeaves.get() ? 15.0F : super.getDigSpeed(par1ItemStack, par2Block, metadeta)) : 5.0F; }