/// <summary> /// Returns whether the current item (tool) can harvest from the specified block (actually get a result). /// </summary> public virtual bool CanHarvestBlock(Block par1Block) { if (par1Block.BlockMaterial.IsHarvestable()) { return(true); } ItemStack itemstack = GetStackInSlot(CurrentItem); if (itemstack != null) { return(itemstack.CanHarvestBlock(par1Block)); } else { return(false); } }